Change majors
Change majors
Change majors
What assembly language you using is a good start? MIPS?
THAT'S GOOD BUT THIS IS QUICKERmov ax, 0
mov bx, 0
int 16
gogogo
i dunno, i've never actually done x86 assembly. that was just something I remember someone saying ~5 years ago in high schoolTHAT'S GOOD BUT THIS IS QUICKER
mov ah, 0x4C
int 0x21
mov ax, 0
mov bx, 0
int 16
gogogo
btw that assignment sounds like a pain in the ass, though not really difficult
write a C program that does it, then compile it and look at the assembly listing
it isn't hard, i have the rest of the project done already...and like i understand the concept here and everything, i just don't know like "shift left twice, then add 2, then shift left again, then blah blah blah" that bullshit, so i can put it into code. just need like the general idea to convert it and i can put it into code.
ps assembly is gay but i like it more than c++
hex to bcd is no different than hex to binary, or binary to bcd
i.e.
the first place is 16^0, second place is 16^1, third place is 16^2, just like in binary first place is 2^0, second is, 2^1, etc...
if you can't understand that then switch majors
read the thread you stupid fuck
i found that site, it isn't helping me. you can't really check the 10s place or 100s place like that with this assembly, it doesn't have a way to do that.
Use an AND with 0x00000F00 or whatever to isolate whatever field you want, shift it over and compare.