I am implementing a bootloader that uses serial to receive hex data using the #use rs232 directive and get/put commands.
Does my code use interrupts? Do I have to pay attention to interrupts redirection?
Thanks,
Andre
Ttelmah Guest
Posted: Wed Nov 29, 2006 3:02 am
Getc, and putc, do not themselves use interrupts. You are only using interrupts, if you have a #int directive. The question though is what you 'main' code uses, rather than what the bootloader does.
Best Wishes
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Wed Nov 29, 2006 3:27 am
Quote:
Do I have to pay attention to interrupts redirection?
You only have to redirect interrupts when:
1) Your bootloader is at the start of memory.
or
2) The bootloader is _not_ at the start of memory and using interrupts.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum