ok...
moves the address of sp to the address of bp...
...
moves the value at bp + 6 into ax
...
but what is the difference in these to commands...
- and -
???
Here is the code context this was found in...
PUSH BP
MOV BP,SP
MOV BX,[BP+0C]
MOV AX,[BX]
PUSH AX
MOV BX,[BP+0A]
MOV AX,[BX]
PUSH AX
MOV BX,[BP+08]
MOV CX,[BX]
MOV BX,[BP+06]
MOV DX,[BX]
POP BX
POP AX
PUSH DS
POP ES
INT 33
PUSH BX
MOV BX,[BP+0C]
MOV [BX],AX
POP AX
MOV BX,[BP+0A]
MOV [BX],AX
MOV BX,[BP+08]
MOV [BX],CX
MOV BX,[BP+06]
MOV [BX],DX
POP BP
RETF 0008
...which is a mouse routine commonly used in QBasic
Thanks for your help in advance, -Josh
Have Fun, Be Young... Code BASIC
-Josh Stribling
Code:
mov bp, sp
...
Code:
mov ax,[bp+06]
...
but what is the difference in these to commands...
Code:
mov bx, ax
Code:
mov [bx],ax
Here is the code context this was found in...
PUSH BP
MOV BP,SP
MOV BX,[BP+0C]
MOV AX,[BX]
PUSH AX
MOV BX,[BP+0A]
MOV AX,[BX]
PUSH AX
MOV BX,[BP+08]
MOV CX,[BX]
MOV BX,[BP+06]
MOV DX,[BX]
POP BX
POP AX
PUSH DS
POP ES
INT 33
PUSH BX
MOV BX,[BP+0C]
MOV [BX],AX
POP AX
MOV BX,[BP+0A]
MOV [BX],AX
MOV BX,[BP+08]
MOV [BX],CX
MOV BX,[BP+06]
MOV [BX],DX
POP BP
RETF 0008
...which is a mouse routine commonly used in QBasic
Thanks for your help in advance, -Josh
Have Fun, Be Young... Code BASIC
-Josh Stribling