0 Members and 3 Guests are viewing this topic.
HScoreData:.db 100,90,80,70,60,50,40,30,20,10,0
ld hl,(score) ld (HScoreData+10),hl ld hl,HScoreData call SortD
A section with the initial data following a label:Code: [Select]HScoreData:.db 100,90,80,70,60,50,40,30,20,10,0for example. Then modify the memory locations in terms of the label. As an example:Code: [Select] ld hl,(score) ld (HScoreData+10),hl ld hl,HScoreData call SortD
Data(100,90,80,70,60,50,40,30,20,10,0)->GDB1HS.later...S->{GDB1HS+10}sub(SORTD,GDB1HS).assume SORTD is a subroutine
z80 Assembly. In Axe you might do it this way:Code: [Select]Data(100,90,80,70,60,50,40,30,20,10,0)->GDB1HS.later...S->{GDB1HS+10}sub(SORTD,GDB1HS).assume SORTD is a subroutine
Data(100^r,90^r,80^r,70^r,60^r,50^r,40^r,30^r,20^r,10^r,0^r)->GDB1HS.later...S->{GDB1HS+10}sub(SORTD,GDB1HS,11).assume SORTD is a subroutine. # of items is 11.
And whats in the subroutine? sorry im just really confused because im new to this.
Assume that the SORTD subroutine sorts data in descending order.I also want to correct something:Code: [Select]Data(100^r,90^r,80^r,70^r,60^r,50^r,40^r,30^r,20^r,10^r,0^r)->GDB1HS.later...S->{GDB1HS+10}sub(SORTD,GDB1HS,11).assume SORTD is a subroutine. # of items is 11.
Quote from: danny90444 on July 01, 2012, 09:55:03 pmAnd whats in the subroutine? sorry im just really confused because im new to this.If you're new to Axe, I'd suggest using a simple appvar. They are super easy to use, and it's harder to accidentally mess up your calculator.Check out this tutorial: http://www.omnimaga.org/index.php?action=articles;sa=view;article=58
If you're new to Axe, I'd suggest using a simple appvar. They are super easy to use, and it's harder to accidentally mess up your calculator.