Author Topic: Learn Hex/NikProgrammer  (Read 23763 times)

0 Members and 1 Guest are viewing this topic.

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Learn Hex/NikProgrammer
« Reply #45 on: July 06, 2014, 05:45:59 am »
Wait, let me see if I understand correct.
A b_call calls a subprogram which is stored in the Include file. So, for example,you don't have to set each pixel to make an "A" or "B". You say: Output this letter here! While assembling later, SPASM searches in the include file for this letter and exchanges the "Output this letter here" with "Set these pixels". Right?
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Learn Hex/NikProgrammer
« Reply #46 on: July 06, 2014, 06:47:55 am »
Not quite. A bcall is like a subroutine, except it's provided by the OS.

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Learn Hex/NikProgrammer
« Reply #47 on: July 06, 2014, 08:33:01 pm »
The bcalls are a bit more complicated than that. What you will find in ti83plus.inc is an address for the bcalls. Someone else can probably explain this much better, but i believe essentially there's a big table which holds the address + flash page of the bcalls. The bcalls are stored in the OS, the include file just provides you with an easy way to access them. Rather than remember the address in the table (for example, $450A for _PutS) you can just type the name. There isn't any code in the include file so it won't increase the size of your file any, there are only equates.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Learn Hex/NikProgrammer
« Reply #48 on: July 07, 2014, 10:03:15 am »
The bcalls are a bit more complicated than that. What you will find in ti83plus.inc is an address for the bcalls. Someone else can probably explain this much better, but i believe essentially there's a big table which holds the address + flash page of the bcalls. The bcalls are stored in the OS, the include file just provides you with an easy way to access them. Rather than remember the address in the table (for example, $450A for _PutS) you can just type the name. There isn't any code in the include file so it won't increase the size of your file any, there are only equates.
I can confirm that bcalls use a vector table.

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Learn Hex/NikProgrammer
« Reply #49 on: July 13, 2014, 05:52:01 am »
Ah, OK. Thank all you!
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Learn Hex/NikProgrammer
« Reply #50 on: July 25, 2014, 06:39:34 pm »
Let me see...
So are there good tutorials except of 28 days and Hotdog's?
And where do I find Hotdog's tutorial?

I'm sorry for my whole questions, ASM is just a trouble :/
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Learn Hex/NikProgrammer
« Reply #51 on: July 25, 2014, 11:54:37 pm »
The only tutorial I ever used besides ASM in 28 days and the other existing ones when I tried learning ASM was ASMGuru, but the learning order is weird and it's only for the TI-83, not the 83+, so it might confuse you even more when you switch back to the 83+.

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Learn Hex/NikProgrammer
« Reply #52 on: July 27, 2014, 11:59:53 pm »
I highly recommend CoBB's z80 guide:
http://sgate.emt.bme.hu/patai/publications/z80guide/

I started with AsmGuru back in the day and thought it was great, but really all it teaches you is how to use bcalls and work with system flags. Not too useful if you want to get started on games as you won't really understand the logic behind things. CoBB's tutorial provides a more theoretical approach i think as does 28 Days and will get you much closer to being able to dive into your own games.

I never spent too much time looking through Hot_dog's tutorial, it came a bit after my tutorial time, but it's in the Omnimaga archives:
http://www.omnimaga.org/files/Our-TI-PC-Products-Music-and-Calculator-Videos/Our-TI-Documentations/

EDIT: You might want to check out the "readme" to CoBB's tutorial, it's got a nice explanation of the dangers of just using other people's code (or BCALLs) without really understanding/taking the time to understand what they do:
http://sgate.emt.bme.hu/patai/publications/z80guide/read1st.html
« Last Edit: July 28, 2014, 12:16:31 am by chickendude »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Learn Hex/NikProgrammer
« Reply #53 on: July 28, 2014, 12:02:54 am »
Hot_Dog's tutorial is more for people who are visual and cannot learn without concrete examples that are interesting to them or real life analogies. IIRC he said it was meant to be used alongside ASM in 28 days.

Offline NikProgrammer

  • LV3 Member (Next: 100)
  • ***
  • Posts: 50
  • Rating: +0/-0
  • Calc's are the most handy thing ever invented :D
    • View Profile
Re: Learn Hex/NikProgrammer
« Reply #54 on: July 28, 2014, 03:14:28 pm »
Thank you (both).
I think in about a year the NikProgrammer TM will open it's assembly factory and start produce software :blah: :D :-\
Well, I'm not english or american so if anything posted by me is not correct just say or ignore...
And please don't set me back because I live in germay... Though I speak german I am still from UA!
––––––––––––––––––––––––––––––––––––––––––––––––––––
It may sound weird but:
'The teapot cools down long.'
and
'The teapot does not cool down long.'
means the same.

What for do we live? - To think of why we do live.
––––––––––––––––––––––––––––––––––––––––––––––––––––
Loving chess- If you know any good chess programs for TI-83+ please PM me- thanks!
Working on Remakes for all of my programs to optimize them and add more user friendliness... And most important: Graphics. I'm not good at graphics, every help is welcome... -Please PM too.

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Learn Hex/NikProgrammer
« Reply #55 on: July 28, 2014, 08:33:39 pm »
The best thing you can do in my opinion is start with a couple small projects and gradually go from there. Really once you get the concept of spriting and tilemapping down there's a whole lot you can do. And of course ask lots of questions. Smaller projects are much more encouraging as you will actually finish them, most (but definitely not all) larger projects remain unfinished or, as was the case with The Verdante Forest, end up burning you out and making you leave the community once the project is actually finished ;) Off topic a bit, i really wish Maarten/Kozak had released the source, i would've liked to try fixing the huge lag when there are lots of animations on screen.