| | |
Pep
Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2009
Posts: 2
Reputation:
Solved Threads: 0
This is my first time looking at anything in Pep 8 machine language and i was wondering if someone could help me understand how to do these problems . I am supposed to find the output for each program. I know the answer for the first one but I don't know how to get that answer and on the second one i am completely lost.
I've seen 91 is Bitwise AND instruction and as a convert decimal instruction
first problem
Second problem
I've seen 91 is Bitwise AND instruction and as a convert decimal instruction
first problem
Assembly Syntax (Toggle Plain Text)
0000 C1000E; A: = first number 0003 910010; ? 0006 F1000D; Store the character 0009 51000D; Char output 000C 00; Stop 000D 00; Character to output 000E A94F; ? 0010 FFFD; ? Output: M
Second problem
Assembly Syntax (Toggle Plain Text)
0000 C1000C; A: = first number 0003 18; ? 0004 F1000B; store the character 0007 51000B; chararacter output 000A 00; Stop 000B 00; Character to outpute 0010 F0D4; ?
0
#5 Oct 25th, 2009
PEP8 doccumentation is NIL!!!
[code]
; 1100 raaa Load register r from memory
0000 C1000C 1100 0011 - 000C LDA FirstNum,d ; A: = first number
; 0001 100r NOT of Register R
0003 18 0001 1000 A = ~A
; 1111 raaa Store byte register r to memory
0004 F1000B 1111 0001 - 000B STA SecondNum ; store the character
; 0101 0aaa Character Output from Operand
0007 51000B 0101 0001 - ; chararacter output
0000
;000A 00 0000 0000 ; Stop
; Stop execution
000B 00 0000 0000 ; Character to outpute
; 1111 raaa Store byte register r to memory
0010 F0D4 1111 0000 - D4 ; ?
SecondNum 000B
FirstNum 000C
;
; aaa
; 000 Immediate
; 001 Direct
; 011 Stack-relative
; r
; 0 Accumulator,A
; 1 Index register,X
[/'code]
[code]
; 1100 raaa Load register r from memory
0000 C1000C 1100 0011 - 000C LDA FirstNum,d ; A: = first number
; 0001 100r NOT of Register R
0003 18 0001 1000 A = ~A
; 1111 raaa Store byte register r to memory
0004 F1000B 1111 0001 - 000B STA SecondNum ; store the character
; 0101 0aaa Character Output from Operand
0007 51000B 0101 0001 - ; chararacter output
0000
;000A 00 0000 0000 ; Stop
; Stop execution
000B 00 0000 0000 ; Character to outpute
; 1111 raaa Store byte register r to memory
0010 F0D4 1111 0000 - D4 ; ?
SecondNum 000B
FirstNum 000C
;
; aaa
; 000 Immediate
; 001 Direct
; 011 Stack-relative
; r
; 0 Accumulator,A
; 1 Index register,X
[/'code]
![]() |
Similar Threads
- Starting Python (Python)
- C++ program to Pep/assembly language (C++)
- need help on pep/8 machine language program (Assembly)
- Recreational Beverage of Choice (Geeks' Lounge)
- 7 Tips to Keep your PC Running At Peak Performance (Windows tips 'n' tweaks)
- need an idea to program (Computer Science)
- Dodge viper SRT 10 (Geeks' Lounge)
Other Threads in the Assembly Forum
- Previous Thread: Simple Operating System
- Next Thread: MIPS Assembly Lanuaguage programming
| Thread Tools | Search this Thread |





