English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

HELP
hi

i need a 3 digit calculator source in assembly that realy work.

thank you for helping me.

2006-08-09 23:33:00 · 2 answers · asked by justin_coolx82 1 in Computers & Internet Programming & Design

2 answers

You know since most assembly languages have different syntax, and since you didn't bother to tell us what assembly you were using...

2006-08-10 09:10:14 · answer #1 · answered by D 4 · 0 0

Justin sorry mate I ddon't have time to do that but here you work it out for yourself:

Table 1 defines the LMC instruction set. These nine
instructions are sufficient to perform any computer
program.
TABLE 1
LMC INSTRUCTION SET
Opcode Description Mnemonic

LOAD contents of mailbox address into calculator
STORE contents of calculator into mailbox address
ADD contents of mailbox address to calculator
SUBtract mailbox address contents from calculator
INPUT value from inbox into calculator
OUTPUT value from calculator into outbox
HALT - LMC stops (coffee break)
SKIP
SKN - skip next line if calculator value is negative
SKZ - skip next line if calculator value is zero
SKP - skip next line if calculator is non-negative
JUMP – goto address
LDA XX
STA XX
ADD XX
SUB XX
IN
OUT
HLT
SKN
SKZ
SKP
JMP XX

2006-08-10 00:34:10 · answer #2 · answered by Joe_Young 6 · 0 0

fedest.com, questions and answers