Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal CCP not optimal #98

Open
MockbaTheBorg opened this issue Nov 24, 2019 · 3 comments

Comments

@MockbaTheBorg
Copy link
Owner

@MockbaTheBorg MockbaTheBorg commented Nov 24, 2019

Hey everyone,

Maybe you want to give the internal CCP a try? Let me know what works as intended and what fails?
I am willing to make it work better. I is a good alternative for microprocessors as its code will sit in flash and not RAM.
Suggestions to code improvements are also welcome.

Thanks a lot,
Marcelo.

@drawkula

This comment has been minimized.

Copy link
Contributor

@drawkula drawkula commented Nov 24, 2019

I'm currently not CP/M-ing on MCUs. But let's torture BorgCCP a bit on Debian10/AMD64.

CP/M 2.2 Emulator v3.9 by Marcelo Dantas
      Build Nov 24 2019 - 19:31:19
-----------------------------------------
CCP : INTERNAL v1.5   CCP Address: 0xf400

This is e6a0850 with 64k TPA and empty CPPHEAD.
Will submit work as expected?

A0>c:
C0>user 1
C1>type myhi.c
#include "stdio.h"
main()
{
        puts("No meltdown, no specte.");
        puts("No rowhammer, no brainslammer!");
        puts("\nCP/M!");
        puts(";-)");
}

C1>type myhi.sub
; create myhi.com
c myhi.c
myhi
;

C1>do myhi
SuperSUB V1.1


C1>; CREATE MYHI.COM
C1>C MYHI.C
HI-TECH C COMPILER (CP/M-80) V3.09
Copyright (C) 1984-87 HI-TECH SOFTWARE


C1>MYHI
No meltdown, no specte.
No rowhammer, no brainslammer!

CP/M!
;-)


C1>;

Ok... using SuperSUB named do here it looks ok.

C1>submit myhi 


C1>; CREATE MYHI.COM
C1>C MYHI.C
HI-TECH C COMPILER (CP/M-80) V3.09
Copyright (C) 1984-87 HI-TECH SOFTWARE


C1>MYHI
No meltdown, no specte.
No rowhammer, no brainslammer!

CP/M!
;-)


C1>;

Good ol' submit is happy too.
Now the big stuff: Rebuild [Peter Schorn]'s SPL:

C1>h:
H1>user 2
H2>submit makespl

(((Lots of lines not pasted in here.)))
Ended without error.
So a new SPL compiler and all the libraries should be rebuilt now.
Do it again with the rebuilt toolchain, this time using SuperSUB:

H2>do makespl

(((Lots of lines not pasted in here.)))
Ended without error.

H2>█

So submit files are working from other user areas and other drives than A.
Let's call it "Happy End!" for this test.
\o/

@MockbaTheBorg

This comment has been minimized.

Copy link
Owner Author

@MockbaTheBorg MockbaTheBorg commented Nov 24, 2019

Awesome!!! So looks like my guava didn't fall too far from the tree.

@MockbaTheBorg

This comment has been minimized.

Copy link
Owner Author

@MockbaTheBorg MockbaTheBorg commented Dec 4, 2019

Anyone else wants to give it a try?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.