Author Topic: Ok, I'm a noob  (Read 6319 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
Re: Ok, I'm a noob
« Reply #15 on: March 27, 2012, 02:47:19 pm »
Cool :) I started a tutorial a long time ago (that I never finished). It had a similar style, but it was aimed at BASIC programmer learning to program in hex/assembly. Here is an example from it:
Code: [Select]

-------------------------------------------------------------------
Experiment 4  Memory Editing (v.1)
-------------------------------------------------------------------
214093 ;ld hl,plotSScreen ;9340h is the address* of the graph screen buffer*
3EAA ;ld a,$AA ;$AA→a Feel free to change the "AA"
77 ;ld (hl),a ;a→(hl) This stores the value of "a" to the address at "hl"
23 ;inc hl ;hl+1→hl
77 ;ld (hl),a ;same as before
C9 ;ret ;Stop

To Use:
Simply run the program. This will edit the top left corner of the
graph screen.

Explanations:
 Address- People can send you mail from anywhere because they know
your address. Your address tells where you are. Similarly, in
assembly, an address tells where each byte of memory is. Using a
hex number between 8000h and FFFFh will give you access to the RAM
(which can be edited). This is the address. It just so happens
that the graph screen has all of its data stored at address 9340h
There are 768 bytes of data for the screen and 768=0300h. So
plotSScreen (Plot Save Screen) is 9340h to 963Fh. Whenever you see
(), whatever is inside the parentheses is the address. If you see:
        ld (xx),y
"y" is being stored at address "xx" and if you see this:
        ld y,(xx)
Then the value at address "xx" is stored to y

PlotSScreen-The way the data is set up is that each byte is 8
pixels. If the value is 3Eh, then in binary it is 00111110. All of
the 1's are dark pixels and all of the 0's are light pixels. These
are stored in rows, so there are 12 bytes per row (96/8=12). With
64 rows, there is 768 bytes in plotSScreen (12*64=768).

That is the most complicated one out of the four sections finished (I planned to have 25 to 50, but then I never finished).

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Ok, I'm a noob
« Reply #16 on: March 28, 2012, 02:19:32 pm »
Ok, you should really finish that tutorial, or give me all you have untill now :P
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Ok, I'm a noob
« Reply #17 on: March 29, 2012, 12:34:03 pm »
I'm really meaning it, you should finish it, it's explicated very very well.
I'm leaving tommorow on vacation so I won't be able to answer on this topic (and others) for about a week and a half.
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

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: Ok, I'm a noob
« Reply #18 on: March 29, 2012, 09:19:49 pm »
Okay, next week I don't have much work, so I can try :) Thank you!

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: Ok, I'm a noob
« Reply #19 on: May 18, 2012, 04:55:42 pm »
Ok first i wanna apologise for being offline much to long

Second: are u making any progresses on the tutotial, just asking, don't need it really soon so take it easy ;)

Third: is there an ipod app to create and test asm progs?
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

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: Ok, I'm a noob
« Reply #20 on: August 29, 2012, 12:44:28 pm »
Sorry, I haven't had much time at all to work on this stuff :/