I'm trying to figure out how to write C programs instead of assembler so after compile it'll run in a Z80 microprocessor. I'm using the SDCC compiler but what do you need to write in C so that it'll become the Z80 machine code? Let's say the Z80 assembler LD A, 33h(load register A with 33h) which is 3E, 33 in machine code, what would a C program looks like to get this same machine code after compilation?
I know this sounds like a stupid question but I just can't figure out the connection between the two. Any help will be greatly appreciated.
JK
I know this sounds like a stupid question but I just can't figure out the connection between the two. Any help will be greatly appreciated.
JK