Saturday 14 March 2015

Simple Assembly

mov ax, 1234 ; store the decimal number 1234 in ax
mov cx, 0x234 ; store the hex number 0x234 in cx
mov dx, 't' ; store the ASCII code for letter 't' in dx
mov bx, ax ; copy the value of ax into bx, so now bx == 1234


No comments:

Post a Comment