Author Topic: AsmDraw  (Read 1969 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
AsmDraw
« on: January 09, 2014, 10:06:03 pm »
I actually made the first version if this program a long time ago, before I became active in the community. I remade it a few nights ago and uploaded it to TICalc, but it basically works like this:

-Give it a list of coordinates and types
-It generates a hex opcode that draws the rectangles with the given coordinates and methods.

It takes input in the form of {x,y,width,height,type} and you can give it multiple rectangles. It does 6 rectangle types, including the typical black/white/invert, using OS bcalls. This is also a BASIC program that generates the opcodes. As well, it tries to optimise the opcode a little, so if there are 8 or more rectangles, it uses a different method of drawing them (generating an array of coordinates/types and reading them, using 29 bytes extra overhead, 4 bytes less for each rectangle).

Anyways, it was useful for me when I was working on BASIC RPGs to make an assembly program that drew a map. The download is below. With so many other tools available now, this type of program is a bit outdated :P

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: AsmDraw
« Reply #1 on: January 10, 2014, 09:36:29 am »
So i guess you would use this over libs because it is quicker and no dependencies?
Or is it quicker at all?

Anyways, that is a nice concept! :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: AsmDraw
« Reply #2 on: January 10, 2014, 09:41:22 am »
It is actually slower than most libraries (I am sure I can make a library slower, though :P). However, it doesn't have any dependencies, and for anybody that can't send apps or programs to their calc, they can just open this BASIC program in Source Coder 3 or something and copy it onto their calc and be able to use customised assembly code for their games.

As well, it has no dependencies other than it needs to have the TI-OS or something compatible.