Can all registered uses please login, even just for a few minutes..
It helps build a picture where our "good traffic" is coming from..
Thanks :)
It helps build a picture where our "good traffic" is coming from..
Thanks :)
Getting screen base address ?
Getting screen base address ?
What's the best way to get the screen base address of the physical screen ?
Re: Getting screen base address ?
1) XBIOS function Physbase:
http://toshyp.atari.org/en/Screen_funct ... l#Physbase
2) TOS variable _v_bas_ad:
$00044E|long |Pointer to video RAM (logical screen base) |_v_bas_ad
3) SHIFTER registers:
$FF8201|byte |Video screen memory position (High byte) |R/W
$FF8203|byte |Video screen memory position (Mid byte) |R/W
$FF820D|byte |Video screen memory position (Low byte) |R/W (STe)
http://toshyp.atari.org/en/Screen_funct ... l#Physbase
2) TOS variable _v_bas_ad:
$00044E|long |Pointer to video RAM (logical screen base) |_v_bas_ad
3) SHIFTER registers:
$FF8201|byte |Video screen memory position (High byte) |R/W
$FF8203|byte |Video screen memory position (Mid byte) |R/W
$FF820D|byte |Video screen memory position (Low byte) |R/W (STe)
Atari: V4sa TT030 Falcon030 Mega ST Mega STe 1040 STe 520 STm 800XL 65XE Jaguar Lynx I/II 7800 Portfolio / VME: ATW800/2 Mach64 Mach32 ET4000 CrazyDots PAMNet / SM146 SC1435 SM124 / Antonia2 ATSpeedC16 TF536 PAK68/3
Megafile30 Atari1050 DDDHDD XCA12 SF314 / AVGCART SUBCART SidecarTridge ACSI2STM FujiNet LynxMultiCard SkunkBoard CosmosEx SatanDisk UltraSatan USBFloppyDriveEmulator SDrive SIO2PC Eiffel
http://260ste.atari.org
Megafile30 Atari1050 DDDHDD XCA12 SF314 / AVGCART SUBCART SidecarTridge ACSI2STM FujiNet LynxMultiCard SkunkBoard CosmosEx SatanDisk UltraSatan USBFloppyDriveEmulator SDrive SIO2PC Eiffel
http://260ste.atari.org
- thorsten.otto
- Posts: 148
- Joined: Mon Nov 04, 2019 2:20 am
Re: Getting screen base address ?
_v_bas_ad is the *logical* address, the same that you get by calling Logbase(). It's the one that is used by all VDI drawing operations, as well as by Line-A.
I would prefer using Physbase(), unless you are really short on cycles. Using the hardware addresses may not work with graphics cards (well, directly writing to that memory may not work, either)
I would prefer using Physbase(), unless you are really short on cycles. Using the hardware addresses may not work with graphics cards (well, directly writing to that memory may not work, either)
Re: Getting screen base address ?
Assuming by what you've shown in the other thread: if you do a GEM application, there is probably no reason to deal with the screen address at all.
What do you need it for?
What do you need it for?
And remember: Beethoven wrote his first symphony in C.
Re: Getting screen base address ?
cannot remember why I needed it, but I know I just used logbase to get it.
