Jump to content
IGNORED

TI Farmer


The Codex

Recommended Posts

We need a name for the combined version. In the meantime, here's some proof I've worked on it. ;)

 

TI Farmer runs (ZomBXB is not started yet, don't bother running it, it's just some KSCAN test code). I don't think the random events are coming up, and it's not erasing text from the lines correctly, but it doesn't crash and that's a lot of code today. ;) It took about 3 hours to port to assembly, another 3-4 hours writing the subroutines and probably 4-5 hrs in debugging so far. ZomBXB should go faster since I know that code and the XB replacement code is done and tested for the most part. ;)

 

Find attached source code and a runnable cartridge image. :) As I noted, this version has some notable bugs, but it's how far I got so far. ;)

 

TIFARMERASM.zip (OLD VERSION - NEWER ONE BELOW)

 

No screenshot - it looks exactly like the BASIC one. ;) I think, too, it loses a little charm when the crops grow so quickly. But first we'll get it working, then we'll tune.

Edited by Tursi
Link to comment
Share on other sites

Thanks, Codex! I have a pretty good idea what it all does, I admire your tricks to reduce the size of string prints! ;) At times the dense code made for easier assembly!

 

The big issue that bit me was the option base 1, of all things. I decided when I did the port to go ahead and honor that, and reduce all the array indexes by 1, but I didn't remember to actually do that in all the formulas that used arrays, so I've been fixing bugs in that. That, and the double pointer dereference used for the string variables, I sometimes forgot about, hehe. ;) Still - was nice to see it come up!

Link to comment
Share on other sites

Heh heh, yeah, I'm not a big fan of arrays starting at 1 (that part of XB messed me up big time when I moved to other computers), but for the competition it turned out to be handy. My code is no oil painting at the best of times, but I'm afraid my 30-line stuff is about on par with crayon sketches done using only the feet. :)

Link to comment
Share on other sites

Backstory--- Farmer McOwen was assimilated into the Zombie collective--- he then subsequently escaped with the help of the Harmless Lion.... Put into the witness protection program, Farmer...ahem... Zombie McOwen is relocated to Iowa where he starts a new farm... Strangely, the FBI forgot to give McOwen a new name--- so on a quick Google search, the zombie collective found Farmer McOwen's new location, and THEY'RE PISSED!!!

Link to comment
Share on other sites

I wonder if we should ask :)

 

Okay, here's a new version, I think I have all the bugs out and everything is working more or less as per the XB version.

 

TIFARMERASM.zip OLD VERSION, SEE NEWER ONE BELOW

 

I've also added a lot of comments to help me remember what each part was for, hehe, and I've tested every event. Still not very sure about the random number generator, but it seems to be working better now - events come up at least!

 

Next task is to get ZomBXB up and running, too.

 

I wonder if we should ask the guy. I guess it's not like we'll build a real manual but that is pretty sweet. ;)

Edited by Tursi
Link to comment
Share on other sites

D'oh... hopefully you'll be able to grab it. Else I can throw it on my server for you.

 

Yes, coding it to run from cart. Okay so far, I have 24 bytes of scratchpad RAM left and 2k of ROM or so... so it should fit in a standard 8k ROM.

 

I got ZomBXB ported last night so today is the (much longer) debugging phase. I also updated TI Farmer to remove the string variables (like MS$) and have them point direct to ROM instead, that saved a lot of much-needed scratchpad. ;)

 

ZomBXB has a few additional challenges since my code doesn't support the console interrupt routine - the title screen is static (that's okay since it will go away when I combine the two), and also I need a way to emulate the time countdown for CALL SOUND (but I have a plan for that). ZomBXB also had no delay code at all, and desperately needs it (the title screen vanishes instantly, and you are usually dead pretty much instantly when it doesn't crash ;) ).

 

With a little luck and dedication, I can post that version tonight.

Link to comment
Share on other sites

Here's the working version of the cart with both TI Farmer and ZomBXB working.. gameplay on both is comparable to the Extended BASIC versions (but much faster), so this version of the cart is probably worth holding onto just for that.

 

There may be a bug still in ZomBXB.. I occasionally had the screen go white on me, but I didn't capture the bug when it happened and couldn't reproduce when I went back to it. If anyone notices it happen in Classic99, let me know what direction you were going (if you know), and if you can open the debugger before you get killed, let me know the value of VDP Register 7 (then I can set a breakpoint for that value myself ;) ).

 

TIFARMERASM.zip (obsolete, look further down)

 

Source included, of course.

Edited by Tursi
Link to comment
Share on other sites

Ha!!! This is sweet!!! Excellent job my man----

Looking at other people's source code is fascinating. I look at mine side

by side with Pitfall and such.... I feel like I'm drawing in crayon!!! Hahaha!!!

 

Thanks for posting this Tursi. :) TI Faire cart demo???

Link to comment
Share on other sites

It's not finished yet. Just need to merge the two now. ;)

 

You'll find most of this code is pretty primitive -- in order to reduce the number of new bugs I introduced, most of the time I opted to port the Extended BASIC code instruction by instruction, without much concern for the overall intention. Only in a few places, and mostly to save RAM, or if it was more trouble than it was worth to do exactly in asm, did I restructure the code.

Edited by Tursi
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...