bladamson

Untitled

Jun 21st, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. ;
  2. ; File generated by cc65 v 2.13.3
  3. ;
  4. .fopt compiler,"cc65 v 2.13.3"
  5. .setcpu "6502"
  6. .smart on
  7. .autoimport on
  8. .case on
  9. .debuginfo off
  10. .importzp sp, sreg, regsave, regbank, tmp1, ptr1, ptr2
  11. .macpack longbranch
  12. .forceimport __STARTUP__
  13. .export _main
  14.  
  15. ; ---------------------------------------------------------------
  16. ; void __near__ main (void)
  17. ; ---------------------------------------------------------------
  18.  
  19. .segment "CODE"
  20.  
  21. .proc _main: near
  22.  
  23. .segment "CODE"
  24.  
  25. jsr decsp1
  26. ldx #$00
  27. lda #$23
  28. sta $0310
  29. ldx #$00
  30. lda #$24
  31. sta $0311
  32. ldx #$00
  33. lda #$25
  34. sta $0312
  35. ldx #$00
  36. lda #$26
  37. sta $0313
  38. ldx #$00
  39. lda #$27
  40. sta $0314
  41. ldx #$00
  42. lda #$28
  43. sta $0315
  44. ldx #$00
  45. lda #$29
  46. sta $0316
  47. ldx #$00
  48. lda #$2A
  49. sta $0317
  50. ldx #$00
  51. lda #$2B
  52. sta $0318
  53. L001E: jmp L0021
  54. L0020: jmp L001E
  55. L0021: ldx #$00
  56. lda #$20
  57. ldy #$00
  58. sta (sp),y
  59. L0022: ldy #$00
  60. ldx #$00
  61. lda (sp),y
  62. cmp #$80
  63. jsr boolult
  64. jne L0025
  65. jmp L0023
  66. L0025: ldy #$00
  67. ldx #$00
  68. lda (sp),y
  69. sta $0310
  70. ldy #$00
  71. ldx #$00
  72. lda (sp),y
  73. pha
  74. clc
  75. adc #$01
  76. ldy #$00
  77. sta (sp),y
  78. pla
  79. jmp L0022
  80. L0023: jmp L0020
  81. L001F: jmp L0030
  82. L002F: jmp L001F
  83. L0030: jmp L002F
  84. jsr incsp1
  85. rts
  86.  
  87. .endproc
Advertisement
Add Comment
Please, Sign In to add comment