ANOTHER BMX VIEWER (In BASIC)

Post Reply
User avatar
ahenry3068
Posts: 981
Joined: Tue Apr 04, 2023 9:57 pm

ANOTHER BMX VIEWER (In BASIC)

Post by ahenry3068 »

Another BMX file viewer. This one written in BASIC with the help of Stefan's already excellent ROM version of BASLOAD.

SUNDAY 10 DEC, 2023. A very good update. You no longer have to type the .BMX extension. It is assumed if you don't put an extension on the file name. Also added some Machine Language helper code that increases loading speed for full screen BMX's by about 3x or maybe a little more.

MONDAY 11 DEC 2023 Yesterdays Update introduced a small BUG. :(. Program crashed on Empty Input.
** FIXED **

Some sample BMX files included in SAMPLES directory.


(Original program was downloaded 17 times)

HERES THE PROGRAM
BMXVIEWER.zip
(1.42 MiB) Downloaded 839 times
Last edited by ahenry3068 on Tue Dec 12, 2023 8:47 am, edited 2 times in total.
User avatar
ahenry3068
Posts: 981
Joined: Tue Apr 04, 2023 9:57 pm

BMX Viewer. Updated Algorithm.

Post by ahenry3068 »

NEW ALGORITHM For loading the BMX files. I also added a Jiffie timer for the last BMX load.
The new algorithm uses Banked Ram and only works on r47 (and presumably later versions).
This PRG will work on any ROM version later than r45 but uses the old algorithm if < r47.

If you have an older copy of the emulator still laying around you can see the difference in performance.
This will actually load full screen BMX's about 10 jiffies slower. The old algorithm called an ML
helper for full screen BMX's only. The new one relies entirely on ROM call's but is 3 times as
fast for all BMX sizes besides 320x240. 10 jiffies is less than 1/4 of a second so I believe
the overall performance boost is worth the miniscule loss on full screen BMX's.

HERES THE NEW VIEWER
VIEWBMX.zip
(1.66 MiB) Downloaded 11 times
Post Reply