05-22-2007, 12:54 AM
Rob Wrote:I had to google that to see what it was. Nope never played it but I do have a computer engineering degree from Virginia Tech that required 2 classes in Microprocessor design with x86 assembly.
mmmm microprocessor.... assembly haha
go ALU! haha
Quote:code SEGMENT
main PROC
ASSUME cs:code,ds:data
mov ax,data
mov ds,ax
mov al,5
add al,7
lea di,msg1
call outstring ;sbr to print string
call outbyte ;sbr to display value in al
main ENDP
code ENDS
data SEGMENT
msg1 db "The sum is = ",04,0dh
data ENDS
END
how i don't miss the days of assembly lol
Quote:I enjoy assembly, it's really interesting to see what instructions your high level code breaks down to and it's the only language where a goto (JMP/jump) isn't considered a bad practice.
haha when our teacher started C he said "this is the only time i will show you a goto statement. you are never allowed to use it after today. last year's class got hooked on it and didnt use anything else"
we were all pissed we couldn't use goto because our asm codes were absolutely full of jmp, ja,jb, etc
Thanks,
GM Pande
[SIGPIC][/SIGPIC]

