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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/05/03 00:58
Read: times


 
#35650 - RE: 4 -> 16 ASM routine needed
Oliver,
The best thing to do is show us where you have got to.

What ports do you want to use ? What processor ?

In the general case, this IS pretty easy.

You are just building a CASE statement really.
<pre>
MOV A,P1
MOV P0,#0;
DEC A
JNZ step1
SETB P0.0
step1: DEC A
JNZ step2
SETB P0.1
step2: DEC A
JNZ step3
SETB P0.2
step3: ;etc

Is one method, but suffers from obvious problems.The better method needs a 16 byte look up table to do a generic portaddressing.
Look at the MOVC A,@DPTR + A instruction for ideas.

Steve


<pre>


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