mirror of
https://github.com/supleed2/ELEC40006-P1-CW.git
synced 2024-11-10 02:05:48 +00:00
60 lines
614 B
Plaintext
60 lines
614 B
Plaintext
|
LDA R1 0
|
||
|
LDA R2 1
|
||
|
MOV R3 R2
|
||
|
ADD R4 R3 R2
|
||
|
ADO R4 R4
|
||
|
SUB R5 R4 R1
|
||
|
SBO R1 R1
|
||
|
STA R2 2
|
||
|
LDA R6 3
|
||
|
LDA R3 4
|
||
|
LDA R7 17
|
||
|
LSL R6 R3 R7
|
||
|
SUB R1 R1 R7
|
||
|
PSH R1
|
||
|
PSH R5
|
||
|
ADD R1 R1 R7
|
||
|
LSR R7 R6 R7
|
||
|
SBO R5 R5
|
||
|
ASR R7 R6 R5
|
||
|
ROR R1 R1 R5
|
||
|
LDA R1 6
|
||
|
JMP R1
|
||
|
LDA R7 0
|
||
|
LDA R1 7
|
||
|
JC1 R1 R2 R3
|
||
|
LDA R7 0
|
||
|
LDA R1 8
|
||
|
JC2 R1 R7 R5
|
||
|
LDA R7 0
|
||
|
LDA R1 9
|
||
|
JC3 R1 R2 R3
|
||
|
LDA R7 1
|
||
|
LDA R1 10
|
||
|
LDA R6 11
|
||
|
JC4 R1 R6
|
||
|
LDA R7 0
|
||
|
LDA R1 12
|
||
|
JC5 R1 R3 R4
|
||
|
LDA R7 0
|
||
|
LDA R1 13
|
||
|
JC6 R1 R5 R5
|
||
|
LDA R7 0
|
||
|
LDA R1 14
|
||
|
JC7 R1 R7 R6
|
||
|
LDA R7 0
|
||
|
LDA R1 15
|
||
|
POP R5
|
||
|
POP R7
|
||
|
JC8 R1 R7
|
||
|
LDA R7 0
|
||
|
AND R1 R4 R3
|
||
|
_OR R1 R3 R7
|
||
|
NOT R6 R7
|
||
|
NOP
|
||
|
XOR R1 R6 R7
|
||
|
NND R1 R1 R4
|
||
|
LDA R5 16
|
||
|
NOR R1 R5 R5
|
||
|
XNR R1 R5 R5
|
||
|
STP
|