Jump to content
  • entries
    28
  • comments
    6
  • views
    16,783

Today's progress


Dmitry

860 views

I implemented a copy charset routine in assembler. At first I tried to use the one from the basic listing, I tried to push things on the stack so they could be PLA'd back off in the right order, and be used by the original basic listing's ML subroutine. Didn't work, and ultimately just a bunch of .byte directive's is hardly readable code, so I decided to rewrite - using, of course, some help from the internet to get started.

Well that was the one part of the original game written in machine language, and yet when I did the rewrite, my copy charset routine is faster?!?...seems to be faster.

And the one thing where I was going to continue to use C (remember this is a C/assembly rewrite, even if I'm using assembly 90% of the time)...., the one area where I hoped C would be fast enough, was plotting the borders. Well even after optimizing that a little - C is dog slow, not only slow compared to assembly, but dog slow compared to the original basic....LOL. apparently using COLOR, PLOT and DRAWTO in a character mode worked pretty good in basic.

Today has been all weirdness and unexpected behavior, but nevertheless I did copy and modify the charset per the original code - so I did make progress on one of today's goals. But I'm feeling its enough for now.

1 Comment


Recommended Comments

update, borders are pure assembly now. Turns out everyone knows not to use c for graphics.....I'm basically using C to flow....which is of course, probably not even necessary, but I regret nothing....one thing is for certain, I made the right choice to set up Eclipse and use cl65...

 

code, compile, run....code, compile, run....:) I will see that snake moving tomorrow :0

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