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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/07/03 06:28
Read: times


 
#35826 - RE: 4 -> 16 ASM routines
Many of the solutions suffer from the same problem: P0 is referenced twice. This produces inconsistancy in the conversion. Just as an example:

Suppose that at t(0), P0=0001 (bin). P0 is loaded into A and used to determine the output bit to be set (not yet the port number). In this case, this would be bit #1, so output byte = 00000010

At t(1), P0 changes to (say) P0=1010. Next, P0.3 is taken to determine to which port the output byte has to be moved to. As P0.3 is high, this would be P2. In effect, P1 would be 0 and P2 would be 02h: incorrect for both P0=0001 and P0=1010 as input.
So ALWAYS make a snapshot of the input port and use the copied value to determine output data and port, OR do it the way Michael demonstrated in his second example (P0 referenced only once).


List of 60 messages in thread
TopicAuthorDate
4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: Competition time !            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: Competition time !            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: Competition time !            01/01/70 00:00      
RE: Competition time !            01/01/70 00:00      
RE: Competition time !            01/01/70 00:00      
RE: Competition time !            01/01/70 00:00      
RE: Competition time !            01/01/70 00:00      
RE: Competition time !            01/01/70 00:00      
RE: Competition time ! 11instruct reset            01/01/70 00:00      
RE: Competition time !            01/01/70 00:00      
RE: Competition time !bart            01/01/70 00:00      
RE: Competition time ! 11instruct reset            01/01/70 00:00      
RE: Competition time ! 11instruct reset            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
Harwware vs Software game.            01/01/70 00:00      
RE: Harwware vs Software game.            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: Harwware vs Software game.            01/01/70 00:00      
RE: Harwware vs Software game.            01/01/70 00:00      
RE: Hardware vs Software game.            01/01/70 00:00      
RE: Hardware vs Software game.            01/01/70 00:00      
RE: code in action            01/01/70 00:00      
RE: code in action            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM Michael @A+PC            01/01/70 00:00      
RE: 4 -> 16 ASM Michael @A+PC / Rob            01/01/70 00:00      
Michael Karas 2nd assembly program text            01/01/70 00:00      
RE: competition rules and prize            01/01/70 00:00      
RE: competition rules and prize            01/01/70 00:00      
RE: competition rules and prize            01/01/70 00:00      
RE: 4 -> 16 ASM Michael @A+PC / Rob            01/01/70 00:00      
RE: competition rules and prize            01/01/70 00:00      
RE: 9 line or 9 byte instruction?            01/01/70 00:00      
RE: 9 line or 9 byte instruction?            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed,Peter            01/01/70 00:00      
RE: 4 -> 16 ASM routines            01/01/70 00:00      
RE: 4 -> 16 ASM routine needed            01/01/70 00:00      
RE: 4 -> 16 ASM... changing assignments            01/01/70 00:00      
RE: 4 -> 16 ASM... changing assignments            01/01/70 00:00      
RE: 4 -> 16 ASM... my mistake            01/01/70 00:00      
RE: 4 -> 16 ASM... my mistake            01/01/70 00:00      
RE: 4 -> 16 ASM.            01/01/70 00:00      
RE: 4 -> 16 ASM.... R0/R1            01/01/70 00:00      
RE: 4 -> 16 ASM. -- Are you serious??            01/01/70 00:00      
RE: 4 -> 16 ASM.... R0/R1            01/01/70 00:00      

Back to Subject List