Author Topic: ASM OS TI83Plus  (Read 4169 times)

0 Members and 1 Guest are viewing this topic.

Offline MrFinn

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +0/-0
    • View Profile
ASM OS TI83Plus
« on: May 03, 2012, 03:24:19 pm »
Is there a list somewhere that says all of the b_call commands? Im trying to find out two things:
1. how to turn off the "program running" bar in the upper right
2. and to make the screen not move when you display something in the bottom right most of the screen.

fyi im very new to asm programming
thanks for any help i can get

Offline C0deH4cker

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 258
  • Rating: +11/-1
    • View Profile
    • iNinjas Forum/Repo
Re: ASM OS TI83Plus
« Reply #1 on: May 03, 2012, 04:16:42 pm »
look in ti83plus.inc for the list of bcalls.

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: ASM OS TI83Plus
« Reply #2 on: May 03, 2012, 04:26:41 pm »
You can also look here for a more complete list:
http://wikiti.brandonw.net/index.php?title=Category:83Plus:BCALLs:By_Name

Note that a fair number of those are non-official, discovered by the community.
Omnimaga Admin

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: ASM OS TI83Plus
« Reply #3 on: May 03, 2012, 04:29:44 pm »
For the run indicator, you will need to simply use bcall(_RunIndicOff). The official SDK on the TI site has tons of info, too. I would use the link Netham gave for undocumented stuff and the official one for documented stuff :)

Offline MrFinn

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +0/-0
    • View Profile
Re: ASM OS TI83Plus
« Reply #4 on: May 03, 2012, 04:32:05 pm »
You guys are great!  :thumbsup:

Thanks for the links.

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: ASM OS TI83Plus
« Reply #5 on: May 03, 2012, 04:34:25 pm »
Hehe, good luck! By the way, might I ask what you are working on?


EDIT: Also, here is your topic from yesterday: http://ourl.ca/16014

Offline MrFinn

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +0/-0
    • View Profile
Re: ASM OS TI83Plus
« Reply #6 on: May 03, 2012, 05:09:40 pm »
like i said, im VERY new to programming asm.
Im simply trying to make a program that allows me to use the arrows to move a "cursor" (any one letter output)  up, down, left, right around the screen.

when ever i get to the bottom right most square, the screen auto scrolls... :( i still cant seem to get around that.


In basic i have almost completed a battleship program that has an ai that should be able to beat a human 50% of the time. i started learning asm because it is slow and i want to make it fast.

i have read "asm for the absolute beginner" and have "learn ti83+ in 28 days"

Sry for the long explation. anyways thats where im at.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: ASM OS TI83Plus
« Reply #7 on: May 03, 2012, 05:16:48 pm »
when ever i get to the bottom right most square, the screen auto scrolls... :( i still cant seem to get around that.

res appAutoScroll,(iy+appFlags) :)

EDIT: And as Xeda112358 mentioned, make sure to reverse the change before you exit with set appAutoScroll,(iy+appFlags).


Note: That's res 2,(iy+13) if you're not using ti83plus.inc, although I suggest you do use it.
« Last Edit: May 03, 2012, 05:23:00 pm by Runer112 »

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: ASM OS TI83Plus
« Reply #8 on: May 03, 2012, 05:16:57 pm »
when ever i get to the bottom right most square, the screen auto scrolls... :( i still cant seem to get around that.

Code: [Select]
res appAutoScroll, (iy + appFlags)

And if you want links to those official documents mentioned go here.

The important downloads are the "TI-83 Plus Developer Guide" and the "TI-83 Plus System Routines"



Also, since you're probably tired of crashing your calculator, might I suggest wabbitemu. Once you get used to debugging with wabbitemu, you can become an assembly pro.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

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: ASM OS TI83Plus
« Reply #9 on: May 03, 2012, 05:21:15 pm »
Ah, this is a case where you want the official SDK. There are a few ways to draw a cursor. You probably want _PutMap which draws a single char :) You could also do
res appAutoScroll,(iy+appFlags)


You will want to set that flag before exiting, though.

EDIT: Double ninja'd D:

Offline MrFinn

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +0/-0
    • View Profile
Re: ASM OS TI83Plus
« Reply #10 on: May 03, 2012, 05:48:43 pm »
SWEET!

Heres whats up:
   I already have wabbitemu (which is great!) as well as the ti83plus.inc
i used the res appautoscroll and the set for it so everything works inside the program and after the program (A+ guys)

only 2 things i dont understand: what to do with sdk
and what exactly everything means with the autoscroll

but im VERY happy now because the program is working.

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: ASM OS TI83Plus
« Reply #11 on: May 03, 2012, 07:42:20 pm »
With the SDK, there are two PDFs that you can read. The sysroutines one has just documentation of a large number of bcalls (a few hundred pages) and the other is pretty informational about how to do certain tasks like creating variables) :)

The appAutoScroll is a flag that the OS uses to figure out if it should scroll or not. IY is an index register that points to the flags. As Runer pointed out, the actual routine (if you aren't using names, just numbers) is:
     res 2,(iy+13)
This means it resets bit 2 of the byte at (iy+13), so 13 bytes after the first byte of the flags.