Jump to content

Photo

xBIOS, new features


5 replies to this topic

#1 xxl OFFLINE  

xxl

    Stargunner

  • 1,126 posts
  • Location:Rabka-Zdrój /Poland

Posted Sat Jan 5, 2013 9:46 AM

like inflate on the fly...


http://atari.pl/xbios.atr

#2 Heaven/TQA ONLINE  

Heaven/TQA

    Quadrunner

  • 11,192 posts
  • Location:Baden-Württemberg, Germany

Posted Sat Jan 5, 2013 3:23 PM

hi xxl,

thx. xbios looks good. so I can pack xex with gzip, call "binary load" and it works?

and binary load can handle several segments?

#3 Creature XL OFFLINE  

Creature XL

    Dragonstomper

  • 904 posts
  • Location:Hannover.De

Posted Sat Jan 5, 2013 4:17 PM

Oh, didn't really know what this XBIOS was used for. But after reading the page it looks like it can be used to load parts of, say a game, from disk.
Would be much easier then re-enabling the OS. Will have a look at it IF I need it :)

#4 xxl OFFLINE  

xxl

    Stargunner

  • Topic Starter
  • 1,126 posts
  • Location:Rabka-Zdrój /Poland

Posted Sat Jan 5, 2013 4:50 PM

no, binary file works normally. there is modified Fox's inflate decompressor (512 bytes) you can do it this way:

org myproc
lda <DEST
sta inflate_zp+2
lda >DEST
sta inflate_zp+3
jsr inflate
; so source is not RAM but file
rts ; continue loading (1)
INI myproc

opt h-l+o+
ins 'deflated.df7'

opt h+l+o+
org mynextproc (1)
...
run mynextproc

if you prefere RLE there is 31 byte decompressor routine (source-file, dest-memory)


there is more, you can:


org NMIEN
.byte $00 ; NMI OFF
org $0000
; all zero page free to direct loading

and you can

org PORTB
.byte $fe ; ROM OFF
org $c000
; all RAM under ROM free to direct loading

and you can

org $ffff ; ;-)
.byte $ff

only MADS can build right binary file

and you can

org myproc
ldx #$ff
txs ; destroy stack
jmp xBIOS_BINARY_LOAD ; continue loading

and you can

jmp xBIOS_BINARY_LOAD ; binary load from any position in file

and you can

org my_proc
ldy <any_adress
ldx >any_adress
lda #%11 ; b0 = 1 - change RUNAD; b1 = 1 - change INITAD;
jmp xBIOS_SET_VECTORS
ini my_proc

org my_new_proc
...
org any_adress
.word my_new_proc ; - INI ADRESS

so memory $0200-$6ff free to direct loading

after that all you can still load or save data to any file


and ... http://xxl.atari.pl/?p=1076

#5 Creature XL OFFLINE  

Creature XL

    Dragonstomper

  • 904 posts
  • Location:Hannover.De

Posted Sat Jan 5, 2013 5:23 PM

Could I read/write inside the XEX? The "point" function sounds like it could be done.

Loading/running a XEX. Then load the level data from the same XEX (if I know the byte-position in that file) ?
And later, writing "savegame" to a portion of that file?

#6 xxl OFFLINE  

xxl

    Stargunner

  • Topic Starter
  • 1,126 posts
  • Location:Rabka-Zdrój /Poland

Posted Sat Jan 5, 2013 5:35 PM

> Could I read/write inside the XEX?

yes

> The "point" function sounds like it could be done

yes. point is relative file position (not like in dos2)

> Then load the level data from the same XEX (if I know the byte-position in that file) ?

yes

> And later, writing "savegame" to a portion of that file?

yes, why not




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users