Advertisement
Guest User

Untitled

a guest
Aug 8th, 2011
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. ;;; ----------------------------------------------------------------------
  2.  
  3. PORT1 = $F3
  4. PORT1DDR = $F4
  5. PORT2 = $F0
  6. PORT2DDR = $F1
  7. PORT3DDR = $EF
  8. PORT3 = $EE
  9.  
  10. .org 0
  11. .res $F000,$EA
  12.  
  13. RESET: sei
  14. cld
  15. .byte $12 ; CLT
  16. ldx #$FF
  17. txs
  18.  
  19. ldy #0
  20. initloop:
  21. lda #255
  22. sta PORT1DDR
  23. sta PORT2DDR
  24. sta PORT3DDR
  25.  
  26. main: lda #255
  27. sta PORT3
  28. sta PORT2
  29. sta PORT1
  30.  
  31. ldx #0
  32. @1: ldy #0
  33. @2: nop
  34. nop
  35. dey
  36. bne @2
  37. dex
  38. bne @1
  39.  
  40. part:
  41. lda #0
  42. sta PORT3
  43. sta PORT2
  44. sta PORT1
  45. ldx #0
  46. @1: ldy #0
  47. @2: nop
  48. nop
  49. dey
  50. bne @2
  51. dex
  52. bne @1
  53. beq main
  54.  
  55. ;;; ----------------------------------------------------------------------
  56. .align 256
  57.  
  58. INITCPUREG:
  59. .byte $E9, $00, $ED, $02, $EE, $00, $EF, $FF
  60. .byte $F0, $02, $F1, $63, $F5, $34, $F6, $18
  61. .byte $F7, $78, $00
  62.  
  63. ;;; ----------------------------------------------------------------------
  64. .align 256
  65. .res $D00
  66. .res $FE ; .org $FFFE
  67.  
  68. .word RESET
  69.  
  70. ;;; ----------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement