/[projet1]/public/pc/tools/osdk/main/Osdk/_final_/lib2/ggeneral.s
Defence Force logotype

Contents of /public/pc/tools/osdk/main/Osdk/_final_/lib2/ggeneral.s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1154 - (show annotations)
Sun Aug 10 18:19:54 2014 UTC (5 years, 3 months ago) by dbug
File size: 636 byte(s)


1 ; Help routines for more complicated functions
2
3
4 getXparm ; Get X params (16bit) from stack
5 ldy #0 ; X is the number of params
6 sty $2e0 ; Zero error indicator.
7 stx tmp ; store X in storage byte
8 ldx #0
9 getXloop
10 lda (sp),y
11 sta $2e1,x
12 inx
13 iny
14 lda (sp),y
15 sta $2e1,x
16 inx
17 iny ;
18 dec tmp ; decrement pointer
19 bne getXloop
20 rts
21
22
23 grexit
24 lda $2e0 ;Return error from Graphics or sound routines
25 grexit2
26 tax
27 lda #0
28 rts

  ViewVC Help
Powered by ViewVC 1.1.26