Author Topic: [83+ ASM] Asm help  (Read 15128 times)

0 Members and 1 Guest are viewing this topic.

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
[83+ ASM] Asm help
« Reply #30 on: April 29, 2006, 05:06:00 pm »
QuoteBegin-Dragon__lance+Apr 29 2006, 09:53 PM-->
QUOTE (Dragon__lance @ Apr 29 2006, 09:53 PM)
I actually have an ASM question, wondering if anyone can answer?

How does storing data in seperate ASM prgm's work,like in Desolate or Verdate Forest?  

 You might want to ask that over at MC, as they will be posting a code snipet for the z80s..

Liazon

  • Guest
[83+ ASM] Asm help
« Reply #31 on: April 30, 2006, 02:15:00 am »
You create an AppVar(iable).  If i recall correctly, it's the b_call(_createAppVar) or something like it.  Then you use b_call(_findsym) and a combination of other VAT ROM calls to find the APP variable's starting address.  Then you can use that address as a pointer from then on to tell the calc where to store the data.

Keep in mind that the address you recieve is the for the first byte.  The first two bytes of the APP var are reserved for a length count, so don't mess with them.  Increase the recieved pointer twice to get the first "free" space in the variable.  If your program creates APPvar of multiple sizes, it might be useful to read those bytes to see how big it actually is.

Storing data in other programs is relatively easy.  VAT ROM calls can be used in almost the same way to find it.  I don't know about actually using it though.  Overall, I think APPvar should be used for save files while external programs should be used for data.  I'm not sure if you can use them for dll (external library of functions) purposes but even if you could, you might as well just rely on a shell's functions (unless you've written special ones).

http://nwps.ws/~dragonfire/Asmin28/lesson/day21.html

http://education.ti.com/educationportal/appsdelivery/download/download_eula.jsp?cid=us&displayMode=G&applicationid=6142&contentpaneid=28  You'll be interested in the System Routines Documentation and the Developer Guide

Hope this helps! (and hope I'm right because I haven't done this before  XDsmiley.gif ).

edit: word of warning: there are a lot of different errors that can occur, so make sure you check for them before trying anything.  You'll see what i mean when you read the descriptions for those ROM calls.

Dragon__lance

  • Guest
[83+ ASM] Asm help
« Reply #32 on: April 30, 2006, 08:55:00 am »
I probably would ask that at MC forums, when i'm a bit more experienced with ASM. They got some mean bashers over there for noobs, thats why i love this place! :)smile.gif
Thanks Liazon, i'm basically experimenting with everything in asm! :)smile.gif

Liazon

  • Guest
[83+ ASM] Asm help
« Reply #33 on: April 30, 2006, 09:02:00 am »
No problem Dragon__Lance!  Take advantage of the fact you can actually assemble code at the moment
Searching old posts on MC is also helpful too. :)smile.gif:)smile.gif:)smile.gif

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
[83+ ASM] Asm help
« Reply #34 on: April 30, 2006, 09:42:00 am »
Yeah, for like when I was working on Asm...lol newb questions were asked by me about asm..

Dragon__lance

  • Guest
[83+ ASM] Asm help
« Reply #35 on: April 30, 2006, 12:27:00 pm »
lol, so are u still trying to prgm ASM at the moment? or just BASIC?

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
[83+ ASM] Asm help
« Reply #36 on: April 30, 2006, 01:30:00 pm »
QuoteBegin-Dragon__lance+Apr 30 2006, 06:27 PM-->
QUOTE (Dragon__lance @ Apr 30 2006, 06:27 PM)
lol, so are u still trying to prgm ASM at the moment? or just BASIC?  

 Not atm, nor do I really plan on it as I don't see myself programming for much longer (calcs.). But I did get some sort of hold on the logic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
[83+ ASM] Asm help
« Reply #37 on: April 30, 2006, 01:36:00 pm »
Its true that some asm programmers at MC arent kind to newbies, and its not good since it drive them away. I dunno if its intentional but they should give them a chance at least and be less rude. Too bad we dont have a lot of asm programmers over here :(sad.gif. Maybe at Revsoft they would be nice in helpingQuoteBegin-kalan_vod+-->
QUOTE (kalan_vod)
Not atm, nor do I really plan on it as I don't see myself programming for much longer (calcs.).
Remember I will miss you kalan when you leave :(sad.gifQuoteBegin-Dragon__lance+Apr 30 2006, 07:27 PM
-->
QUOTE (Dragon__lance @ Apr 30 2006, 07:27 PM)
lol, so are u still trying to prgm ASM at the moment? or just BASIC?

Does it mean your current BASIC project died?

Liazon

  • Guest
[83+ ASM] Asm help
« Reply #38 on: April 30, 2006, 01:48:00 pm »
I apologize since my knowledge of ASM is not very deep.

threefingeredguy

  • Guest
[83+ ASM] Asm help
« Reply #39 on: June 25, 2006, 07:13:00 am »
This is in response to the first page of discussion:
This would be really hard to do for this game. Mainly because menus are not easy to do in ASM. The rest of it could probably be converted by some nice person with time on their hands (not me). Liazon knows what he is talking about, listen to him.

Plus at revsoft, we welcom all coders, not just ASM ones.