??? 05/23/09 04:15 Read: times |
#165550 - Keil multiple source files |
Hello!
I'm having some big headaches programming my at89s8253. I m using keil uVision 3, assembler v8.00b. Here is the deal: I have a main.asm file, and spi.asm and spi.h files. In spi.asm I use a code RSEG, and define a subroutine PUBLIC, master_io in this case. On the spi.h I just have the EXTRN CODE(master_io). Then I include the spi.h in the main.asm and do some stuff with master_io. It works well on the debugger/simulator, but it totally hangs on the chip. But if I just copy the master_io subroutine in my main.asm it works. I really don t understand. Is the same code. The debugger does the same thing in both cases. Any help would be greatly appreciated. Best regards, Matt |
Topic | Author | Date |
Keil multiple source files | 01/01/70 00:00 | |
Is the same code. | 01/01/70 00:00 | |
Keil simulator | 01/01/70 00:00 | |
Keil "Generic" calls & jumps | 01/01/70 00:00 | |
Uh-oh. | 01/01/70 00:00 | |
ACALL or LCALL the same![]() | 01/01/70 00:00 |