10-05-2004, 09:43 PM
[syntax="asm"]; STACK:
; +8: lo
; +6: hi
push bp
mov bp, sp
mov ax, [bp+6]
shl ax, 8
or ax, [bp+8]
pop bp
ret 4[/syntax]
Dunno if it works though, but looks "runnable". I only need the opcodes so that you can convert it to a CALL ABSOLUTE routine
*obviously there are a lot of ways to do such a thing *
; +8: lo
; +6: hi
push bp
mov bp, sp
mov ax, [bp+6]
shl ax, 8
or ax, [bp+8]
pop bp
ret 4[/syntax]
Dunno if it works though, but looks "runnable". I only need the opcodes so that you can convert it to a CALL ABSOLUTE routine
*obviously there are a lot of ways to do such a thing *