delorie.com/archives/browse.cgi | search |
Message-Id: | <199703050036.AAA20319@mx2.rmplc.co.uk> |
From: | "Liam" <marl AT rmplc DOT co DOT uk> |
To: | <djgpp AT delorie DOT com> |
Subject: | Jumping around memory |
Date: | Wed, 5 Mar 1997 00:33:56 -0000 |
MIME-Version: | 1.0 |
This my sound rather stupid but Can somone tell me how to do a FAR jump with NASM, it just keeps spitting out errors. This is the code I'm trying to use: [BITS 16] [ORG 0x100] _main: mov si, text ; get address of message call 8000h:5bh ; call tsr print routine mov ax, 4c00h int 21h ; exit text: db 'Dummy Text',0 It jumps to a tsr in memory but when it returns IP is only restored so it doesnt get back? CS still contains 8000h. Cheers Liam
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |