home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / desklib / Libraries / Sprite / s / 44WriteMas < prev    next >
Encoding:
Text File  |  1994-03-02  |  1.4 KB  |  53 lines

  1. ;
  2. ;       Title                  : Write mask pixel
  3. ;       System                 : Sprite Library
  4. ;       Version                : 1.0
  5. ;       Copyright              : (C) Ainsley Pereira
  6. ;       Date                   : Sun 27th February 94
  7. ;       Author                 : Ainsley M. Pereira
  8. ;
  9. ;       Function               : Write pixel to mask
  10. ;
  11. ;
  12. ;       Modification history.
  13. ;
  14. ;       Version                : (Reflect in header IDENT)
  15. ;       Date                   : 
  16. ;       Author                 : 
  17. ;       Changes                : 
  18. ;
  19. ;
  20. ;============================================================================
  21. ;
  22. ;  Include files.
  23. ;
  24. ;============================================================================
  25. ;
  26.         GET     h.regdefs
  27.         GET     h.swinos
  28.         GET     h.macros
  29. ;
  30. ;============================================================================
  31. ;
  32. ;  Code.
  33. ;
  34. ;============================================================================
  35. ;
  36.         PREAMBLE
  37.         STARTCODE Sprite_WriteMaskPixel
  38. ;
  39.         STMFD     sp!, {v1-v6, lr}
  40.         CMP       a4, #0
  41.         MOVEQ     v2, #0
  42.         MOVNE     v2, #1
  43.         LDR       v1, [a3, #4]
  44.         LDR       a4, [a3, #0]
  45.         MOV       a3, a2
  46.         MOV       a2, a1
  47.         MOV       a1, #256 + 44
  48.         SWI       OS_SpriteOp + XOS_Bit
  49.         MOVVC     a1, #0
  50.         LDMFD     sp!, {v1-v6, pc}^
  51. ;
  52.         END
  53.