Flat-real mode; how to take advantange of it?
Posted: Fri Aug 26, 2005 11:00 pm
from what i have read I am very confused as example source code shows one thing but the description says another
so can anyone perhaps lead me to anything that tells you how to use it
here is just a simple no segment version of pokeb but it just dont want to work
in tasm, ideal mode with .386p
i use this as a C proc so the linear_adress is replaced with [bp+2] or something like that and same for data
btw
im sure im switched to 4gb gs, and fs segments cause bochs reports granulairty being 1(kb) and limit being FFFFFh
so can anyone perhaps lead me to anything that tells you how to use it
here is just a simple no segment version of pokeb but it just dont want to work
Code: Select all
push si
push ax
mov esi,LINEAR_ADRESS
mov gs,esi
mov esi,0
mov al,DATA
mov [gs:si],al
pop ax
pop si
i use this as a C proc so the linear_adress is replaced with [bp+2] or something like that and same for data
btw
im sure im switched to 4gb gs, and fs segments cause bochs reports granulairty being 1(kb) and limit being FFFFFh