Jump to content
IGNORED

xbios + madPascal minimal example?


Recommended Posts

i would like to have as much free memory as possible, but still be able to load files from disk.

so i tried to use xbios in madPascal.

 

however, the program crashes, since xbios (using the default load adresse $0800) calls 

 

>   2  18 03DA:20 59 E4          JSR $E459   ;SIOV

 

this seems like OS rom, but since i wanted to have as much free memory as possible,

i turned OS off, so this jumps into memory and crashes.

 

so what am i doing wrong?

do i need to configure xbios somehow?

i am using atari800macX as emulator, and have only one drive configured there.

 

maybe i have a configuration error there that makes xbios call SIOV?

or did i misunderstand XBIOS and it provides maximum ram only if no I/O is taking place?

since i am a newbie, i really have no clue.

 

can any help? 

 

find attached my minimal example (using macos/linux+make)

 

xbios_example.zip

Link to comment
Share on other sites

23 minutes ago, drunkeneye said:

do i need to configure xbios somehow?

 

xB starts in a configuration that uses OS procedures, which means it will work with any device, but if you want xB not to use OS, you should execute the following immediately after starting the program:

 

jsr     xBIOS_SET_DEFAULT_DEVICE

 

 

you can configure xBios in the configuration file or header of xB itself and you won't need that command there - but start with what I wrote above

  • Like 1
Link to comment
Share on other sites

3 hours ago, xxl said:

 

xB starts in a configuration that uses OS procedures, which means it will work with any device, but if you want xB not to use OS, you should execute the following immediately after starting the program:

 

jsr     xBIOS_SET_DEFAULT_DEVICE

 

 

you can configure xBios in the configuration file or header of xB itself and you won't need that command there - but start with what I wrote above

 

that did the trick, perfect, thanks a lot!!!

 

Link to comment
Share on other sites

1 hour ago, xxl said:

🙂

 

Show off your project - what will it be?

 

its a secret for now ;) :) ;) 

 

actually its nothing special, just a port of a c64 game written in basic.

right now i do have problems with the map, and am unsure how i solve the problem,

so expect some more questions here :)

 

however, i will post the game and all sources on github 

when entering beta, so stay tuned

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...