Jump to content
  • entries
    20
  • comments
    16
  • views
    8,643

Store_maint now working


Shawn Jefferson

1,497 views

Has it really been a year since I updated this Blog? Wow.

 

I've been continuing to port Moria over to the Atari 8-bit, equipped with VBXE and an Atarimax 8-Mbit (1024K) cartridge. I've just gotten all the bugs out of the store_maint procedure, which runs during the generation of the town. This populates all the stores with items, and also rotates the items periodically. It was quite a hassle to get ported over properly, since all the data being used is in overlapping banks of RAM that is being banked by VBXE at $4000-BFFF. Most of the code is in the cartridge bank at $A000.

 

Next on the list is to get the store display functions ported over, which should be easy, and then onto the main dungeon code. I guess we could consider this milestone 2 of this project, given that this was the high-level overview of the steps to completion:

 

1. Make this into an 8Mbit cart-easy to do with cc65 linker config. -DONE

2. Port Generate cave code. -DONE

3. Port Dungeon code.

4. Write new character save/restore code for flashcart.

5. polish/optimize.

 

Attached is an Atarimax 8-Mbit (1MB) cartridge (old style bank 127 activate on boot). You need VBXE to run this. Try it in Altirra with Warp Speed on. After selecting your character, it will generate dungeon levels from 0 to 50, pausing for a key press between each one. There's still a lot of debugging messages on the screen, and no real optimization has been done yet, other than refactoring the code to work a bit better with cc65.

2 Comments


Recommended Comments

If I read your blog correctly the only feature of the VBXE you are using is support for 80 column display support?

 

Keep up the port! I can help test and debug. I'm not a good developer but I know enough to fix someones else's code.

Link to comment

Sorry it took so long to respond to this, just saw it now!

 

I'm using the 80 column support AND the extra RAM of the VBXE. Basically I'm banking out large swathes of the 64k RAM space to accommodate the screen (24k), treasure tables, spell tables, monster tables, etc... Moria is quite large, and it may not all fit on the Atari even (assuming I ever finish it!) All the code is running from $A000-BFFF in the 1Mb cartridge banks. So the code is really a banking nightmare, but seemed possible...

 

I'm hoping that when the code is all working I will have enough space left to implement enhanced VBXE graphics.

Link to comment
Guest
Add a comment...

×   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...