| ??? 12/05/02 17:11 Read: times |
#33847 - RE: little help! assembly |
The initial state after reset was:
all ports = 0FFh PSW = 00h So for using ports as inputs and using register bank 0 you need to do nothing. Simple use it. If you really want to stop the µC forewer, execute this line: jmp $ But I have never seen any practical program which do so. Almost all programs execute the main loop again and again: main: ; do something jmp main end Then "end" statement tells only the assembler, that no further source code lines follows. Absolutely no code was generated on the "end" statement. Peter |



