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

Hint: Low Level Computer programming and might need instruction set mastery.

2006-09-06 12:10:26 · 4 answers · asked by simply the best. 2 in Science & Mathematics Physics

4 answers

I'm not sure what you are asking, but here goes, in intel 0x86 assembler language, this will store C2 into address 0300 :

mov cx, C2
mov [0300], cx

and this will get the value at address 0300, add FF to it, and store the result in address 0C12 :

mov ax, [0300]
add ax, FF
mov [0c12], ax

2006-09-06 12:23:57 · answer #1 · answered by jim_619_858 3 · 1 0

I understand the code but what is the question, and which base are you looking for your answer, binary, 8, 16 or decimal? FF is just 15 ones and 15 tens for a total of 175 in decimal C2 would be 12 tens and 2 ones for 122 but 0300 in binary is 12 in decimal or 300 in decimal or if base 16 176 times 3 for 526 in decimal.

2006-09-06 19:21:00 · answer #2 · answered by redhotboxsoxfan 6 · 0 0

You would have to specify what processor you are dealing with, if your question is how to write the instructions to do this.

Not to sound picky, but redhot is incorrect in the conversion of hex to decimal...

2006-09-06 20:27:30 · answer #3 · answered by Ken H 4 · 0 0

Hi. You are looking at machine code, one step up from binary. Do you have a question?

2006-09-06 19:13:00 · answer #4 · answered by Cirric 7 · 0 0

fedest.com, questions and answers