Mike Chambers
Veteran Member
- Joined
- Sep 2, 2006
- Messages
- 2,621
hi... can anybody tell me why the following code locks up the machine after i call it?
the code runs and writes the A to the screen but it locks the system up instead of returning control to QB...
i'm calling it like this in quickbasic 4.5 (the compiled code is inside of asmCode$)
like i said, it runs the bit of code and writes the data to the screen, but then locks up... shouldn't it return to QB with the RET function?
if this is a horribly stupid question, which i'm sure it is... sorry. i'm not even close to an ASM expert.
it does the same thing on every PC i use to test it... pentium 133, my 486, my 286, and even under a VMware DOS box.
Code:
mov ax, 0b800h
mov ds, ax
mov [00h], 'A'
ret
the code runs and writes the A to the screen but it locks the system up instead of returning control to QB...
i'm calling it like this in quickbasic 4.5 (the compiled code is inside of asmCode$)
Code:
CALL ABSOLUTE(SADD(asmCode$))
like i said, it runs the bit of code and writes the data to the screen, but then locks up... shouldn't it return to QB with the RET function?
if this is a horribly stupid question, which i'm sure it is... sorry. i'm not even close to an ASM expert.
it does the same thing on every PC i use to test it... pentium 133, my 486, my 286, and even under a VMware DOS box.