Original Post
Ok, I went out and got a book finally. "Assembly Language Step-By-Step" Second Edition, Programing with Dos and Linux by Jeff Duntemann. And I''m almost all the way through the book but I keep getting stuck on bit wise operators. Both with the AND NOT XOR OR, and with the ROL ROR SHR SHL commands. I''ve been trying to puzzle it out for about 2 days now and its just not working. So, is there anyone out there that could try and explain that to me. Also on a second note I''ve been having a hard time figuring out exactly what a specific line of code does. (It is working code) From a program my brother made.
add ax, ds:[bx+si] ; not exactly sure how that works
I know it has to do with putting a value and not a address into ax but that''s about it.
inc ax ; ax++
and [bx], dx ; [bx] == dx ??
jbe 001Dh ; jump if below or equal address 001Dh
push dx ; put dx on stack
inc dx ; dx++
mov ax, es ; *ax = *es
add ax, 0010h ; *ax = *ax+16
push cs ; put cs on stack
pop ds ; take cs off stack, ds = cs
mov word ptr [0004], ax ;
this is what completely threw me because I thought you cant have a immediate data value in the destination spot. So I though could it be a software interrupt? Thanks everyone for the help.