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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/25/03 11:54
Read: times


 
#61380 - RE: Data processing---248 -> \\\\\\\\
Responding to: ???'s previous message
Or making adaptation to Anders' routine to make it directly applicable to the display application....
;
;Converts A binary number into the three equivalent
;digits for a decimal display. THen entry R0 has the
;address if where to store the three digit result
;
BIN_DEC:
    MOV    B, #100
    DIV    AB        ; divide entry value by 100
    MOV    @R0, A    ; place 100's digit in buffer
    INC    R0        ; bump buffer pointer
    MOV    A, B      ; get the previous remainder
    MOV    B, #10    ; divide the remainder by 10
    DIV    AB        ; tens in A, ones digit in B 
    MOV    @R0, A    ; place 10's digit in buffer
    INC    R0        ; bump the buffer pointer
    MOV    A, B      ; get the ones digit
    MOV    @R0, A    ; place 1's digit in buffer
    RET              ; exit 
Michael Karas


List of 7 messages in thread
TopicAuthorDate
Data processing---248 -> "2", "4            01/01/70 00:00      
   RE: Data processing---248 -> \\            01/01/70 00:00      
      RE: Data processing---248 -> \\\\\\\\            01/01/70 00:00      
         RE: Data processing---248 ->            01/01/70 00:00      
            RE: Data processing---248 ->            01/01/70 00:00      
         RE: Data processing---248 -> \\\\\\\\            01/01/70 00:00      
            RE: Data processing---248 -> \\\\\\\\            01/01/70 00:00      

Back to Subject List