In: Computer Science
Write an assembly language program that prints your first name in the output.
Use the name "Kevin" as example
Assembler Listing |
Screen Shot of Output area of the Pep8 program |
Immediate addressing :
CHARO 'K',i
CHARO 'e',i
CHARO 'v',i
CHARO 'i',i
CHARO 'n',i
STOP
.END
Assesmbly Listing and Output :
Direct addressing :
CHARO 0x0010,d ;Output 'K'
CHARO 0x0011,d ;Output 'e'
CHARO 0x0012,d ;Output 'v'
CHARO 0x0013,d ;Output 'i'
CHARO 0x0015,d ;Output 'n'
STOP
.ASCII "Kevin"
.END
Assesmbly Listing and Output :