Professional Documents
Culture Documents
Soln.
LDT #90
LDX #0
LDS #3
LOOP LDA RA,X
MUL RB,X
SUB #10
STR RS,X
ADDR S,X
COMP X,T
JLT LOOP
RA RESW 30
RB RESW 30
RS RESW 30
STRNCPY START 0000
0000 STRT LDX INIT
0003 LOOP LDCH SR,X
0006 STCH DS,X
0009 TIX LEN
000C JLT LOOP
000F SR BYTE CABCDEF
0010 DS RESB 6
0016 INIT WORD 0
0019 LEN WORD 3
001C END STRT
PASS 1:
SYMPOL ADDRESS
STRT 0000
LOOP 0003
SR 000F
DS 0010
INIT 0016
LEN 0019
PASS 2 :
OBBJECT FILE :
H/STRNCOPY/000000/00001C
T/000000/03/040016
T/000003/0C/50800F/548010/2C0019/380003
E/000000
Literals (SIC-SIC/XE)
- The assembler generates the specified value as a
constant at some other memory location
- Ex : LDA =CEOF 032010
Immediate Operands (SIC/XE)
- The operand value is assembled as part of the
machine instruction
- Ex : LDA #3 010003
+STCH BUFFER,X
M/000001/05
+STX LENGTH
M/000001/05
MAXLEN WORD BUFFEND-BUFFER
M/000000/06/+BUFFEND
M/000000/06/-BUFFER