i try to explain it more...
i was under the impression that a code segment assembled with
;test.asx
org $c000
ins 'title_g2f.obx',6
end
xasm test.asx
xboot /p test.obx
will generate an ATR with fox' pro loader... so this loader loads the segments and moves them under OS f.e. $c000.
in Boinxx i am installing my own NMI to have more RAM available...so when Boinxx was loaded with the Pro loader i should have the G2f correctly at $c000.
but insteresting is that Boinxx is loaded correctly by the pro loader and is started but the screen remains velvet and the MPT music does not start... so there is something messy going on...
[ Dodano: Nie Lut 06, 2005 18:18 ]
here is the init of boinxx. maybe the pro loader is doing switching OFF the rom before entering the loaded file... maybe this messes up my code...
org $4000
start jsr wait_frame ;wait one frame
jsr switch_off_os_rom
jsr init
jsr pminit ;init pm gfx
...
wait_frame lda 20
cmp 20
beq *-2
rts
switch_off_os_rom sei ;stop interrups
mva #0 ^4e ;stop all interrupts
mva #$fe ^31
mwa #nmi $fffa
mwa #nmi $fffe
mva #$c0 ^4e
rts
; NMI routine
; ^4f==#$5f if VBLKI
; ^4f==#$9f if DLI
nmi bit ^4f
bpl sys_vbl
; DLI routine, e.g.
; pha
jmp (dliv)
; pla
; rti
; VBL routine, e.g.
sys_vbl pha
txa:pha
tya:pha
dec 20
lda $d300 ;prepare joystick
and #$0f
sta stick0
jsr vbl
pla:tay
pla:tax
pla
rti
[ Dodano: Nie Lut 06, 2005 18:18 ]
http://www.atariage.com/forums/viewtopi … 548#791548
here is the latest build of the game.