Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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


List of 27 messages in thread
TopicAuthorDate
little help! assembly            01/01/70 00:00      
RE: little help! assembly            01/01/70 00:00      
RE: little help! assembly            01/01/70 00:00      
RE: little help! assembly            01/01/70 00:00      
RE: little help! assembly            01/01/70 00:00      
Kunal Kandekar            01/01/70 00:00      
RE: little help! assembly            01/01/70 00:00      
RE: little help! assembly            01/01/70 00:00      
RE: little help! assembly            01/01/70 00:00      
RE: infinite loop            01/01/70 00:00      
RE: infinite loop (oops)            01/01/70 00:00      
RE: instruction counter haiku            01/01/70 00:00      
RE: more haiku            01/01/70 00:00      
RE: instruction counter haiku            01/01/70 00:00      
RE: instruction counter haiku (17 syll.)            01/01/70 00:00      
RE: more haiku            01/01/70 00:00      
RE: more haiku            01/01/70 00:00      
RE: more haiku            01/01/70 00:00      
RE: more haiku            01/01/70 00:00      
RE: more haiku            01/01/70 00:00      
RE: more haiku (copied the post)            01/01/70 00:00      
RE: more haiku (copied the post)            01/01/70 00:00      
RE: little help! // Kunal            01/01/70 00:00      
RE: instruction counter haiku            01/01/70 00:00      
RE: instruction counter haiku            01/01/70 00:00      
RE: little help! // Kunal            01/01/70 00:00      
RE: little help! // Kunal            01/01/70 00:00      

Back to Subject List