Implementation of Pass 2 of A Two-Pass Assembler Using Opcode
Implementation of Pass 2 of A Two-Pass Assembler Using Opcode
Implementation of Pass 2 of A Two-Pass Assembler Using Opcode
INPUT FILES
INTERMEDIATE.DAT
** START 2000
2000 ** LDA FIVE
2003 ** STA ALPHA
2006 ** LDCH CHARZ
2009 ** STCH C1
2012 ALPHA RESW 1
2015 FIVE WORD 5
2018 CHARZ BYTE C'EOF'
2019 C1 RESB 1
2020 ** END **
OPTAB.DAT
LDA 33
STA 44
LDCH 53
STCH 57
END *
SYMTAB.DAT
ALPHA 2012
FIVE 2015
CHARZ 2018
C1 2019
OUTPUT FILE :
ASSMLIST.DAT
** START 2000
2000 ** LDA FIVE 332015
2003 ** STA ALPHA 442012
2006 ** LDCH CHARZ 532018
2009 ** STCH C1 572019
2012 ALPHA RESW 1
2015 FIVE WORD 5 000005
2018 CHARZ BYTE C'EOF' 454f46
2019 C1 RESB 1
2020 ** END **