Hi all,
I am using the SDCC for my ZBM project and have begun writing a library so the C program can interface with system calls (RST). I am having some trouble with this and the manual is not very helpful at all. When I generate the output assembly and go through it the first variation of C code produces a sensible output. The second variation does not.
Here is the first C program:
And this is the...
SDCC Compiler Z80 - Strange use of registers
I am using the SDCC for my ZBM project and have begun writing a library so the C program can interface with system calls (RST). I am having some trouble with this and the manual is not very helpful at all. When I generate the output assembly and go through it the first variation of C code produces a sensible output. The second variation does not.
Here is the first C program:
Code (Text):
- printChar('a');
- userinput = getline();
- printString(userinput);
SDCC Compiler Z80 - Strange use of registers