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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1155 - (show annotations)
Sun Aug 10 18:21:10 2014 UTC (5 years, 9 months ago) by dbug
File size: 636 byte(s)


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

  ViewVC Help
Powered by ViewVC 1.1.26