gnusim8085-devel team mailing list archive
-
gnusim8085-devel team
-
Mailing list archive
-
Message #00477
[Question #698068]: OPCODE NEEDS AN USER ARGUMENT
New question #698068 on gnusim8085:
https://answers.launchpad.net/gnusim8085/+question/698068
MVI A, 80H ;Initialize 8255, port A and port B
OUT 83H ;in output mode
START: MVI A, 09H
OUT 80H; PA ;Send data on PA to glow R1 and R2
MVI A, 24H
OUT 81H; PB ;Send data on PB to glow G3 and G4
MVI C, 28H ;Load multiplier count (40ıο) for delay
CALL DELAY ;Call delay subroutine
MVI A, 12H
OUT 81H; PA ;Send data on Port A to glow Y1 and Y2
OUT 81H; PB ;Send data on port B to glow Y3 and Y4
MVI C, 0AH ;Load multiplier count (10ıο) for delay
CALL DELAY ; Call delay subroutine
MVI A, 24H
OUT 80H; PA ;Send data on port A to glow G1 and G2
MVI A, 09H
OUT 81H; PB ;Send data on port B to glow R3 and R4
MVI C, 28H ;Load multiplier count (40ıο) for delay
CALL DELAY ;Call delay subroutine
MVI A, 12H
MVI C, 0AH ;Load multiplier count (10ıο) for delay
CALL DELAY ;Call delay subroutine
JMP START
DELAY: LXI D ;Load count to give 0.5 sec delay
BACK: DCX D;Decrement counter
MOV A, D
ORA E;Check whether count is 0
JNZ BACK;If not zero, repeat
DCR C;Check if multiplier zero, otherwise repeat
JNZ DELAY
RET;Return to main program
ONCE I RUN THIS PROGRAM IT KEEP SHOWS THAT OPCODE NEED AN USER ARGUMENT AND ALSO ASSEMBLING ABORTED. NEED HELP WITH THIS . THANK YOU.
--
You received this question notification because your team GNUSim8085
developers is an answer contact for gnusim8085.