USING PEP 9 SIMULATOR (Hint only two bytes need to be changed in order for it to run)
Modify this program to convert a lower case character entered to an upper case character
D1 FC 15 Load byte from keyboard (0xFC15) into A register
F1 00 18 Store byte from A register to memory (0x0018)
D1 00 18 Load byte from memory (0x0018) into A register
61 00 15 Add data at memory (0x0015) to register A
E1 00 17 Store word from register A to memory (0x0017)
D1 00 18 Load byte from memory (0x0018) into A register
F1 FC 16 Store byte from A reg to mem addr screen(0xFC16)
00 Stop
01Data storage
00Data storage
00Data storage
Greetings!!
Code:
0000 120003 BR main
0003 D1FC15 main: LDBA 0xFC15,d
0006 F10018 STBA 0x0018,d
0009 D10018 LDBA 0x0018,d
000C 60FFE0 ADDA -32,i
000F F10018 STBA 0x0018,d
0012 D10018 LDBA 0x0018,d
0015 F1FC16 STBA 0xFC16,d
0018 0001 A: .WORD 1
001A 00 STOP
001B .END
Output screenshot:
Hope this helps
Get Answers For Free
Most questions answered within 1 hours.