From: jpelletier <jpe...@ie...> - 2003-04-06 05:48:19
|
Hi, I want to generate a hex file from a C program, for my home-made Z80. The hex file needs to be loaded at 0x2000 (in RAM) since my monitor had an hex file loader. My monitor is stored in an EPROM located at 0x0000-0x1FFF. For now, I remove the crt.o code from the hex file manually and it works. I remove these lines: :03000000C3000139 :02000800ED4DBC :02001000ED4DB4 :02001800ED4DAC :02002000ED4DA4 :02002800ED4D9C :02003000ED4D94 :02003800ED4D8C I also modify the start address (and correct the checksum) :0C01000031FFFFCDE13ECD8335C304206C becomes :0C71000031FFFFCDE13ECD8335C30420FC I start execution at 7100 and the program runs as expected. How should I compile my code so that the crt.o is not linked with my program? -- Le physicien nocturne ====================== Bits, hobbits and chobits |