▌RETRO//COLLECTION
Cover of Making Games for the Commodore 64 in Assembly Language
C64

Making Games for the Commodore 64 in Assembly Language

by Bård Baadstø Ildgruben

GET THIS BOOK ↗
Publisher
https://www.lulu.com
Year
2025
Kind
book

Ask about this book

Contents

  1. Bård Baadstø Ildgruben p. 3
  2. Prac%cal Informa%on p. 10
  3. Note to Readers p. 11
  4. Hardware p. 13
  5. STA $2004 p. 20
  6. STA $1004 p. 24
  7. Assembly Language p. 42
  8. Graphics Applica%ons p. 48
  9. A Note to Mac Users p. 49
  10. Development Environment p. 50
  11. DEV Setup on Windows Computers p. 52
  12. DEV Setup on Mac Computers p. 61
  13. Troubleshoo;ng Installa;on and Setup p. 71
  14. Installing the Graphics Applica;ons p. 75
  15. Essen%als p. 76
  16. myHealth $0bf7 p. 85
  17. Programming p. 114
  18. A Quick Note About Code Example Files p. 114
  19. Wri;ng Our First “HELLO C64” Program p. 115
  20. STA $0400 p. 117
  21. Character Set p. 126
  22. Colors p. 131
  23. %11001000 p. 139
  24. $D022 p. 144
  25. $D023 p. 144
  26. $D020 p. 148
  27. $D021 p. 148
  28. Custom Character Set p. 149
  29. %00010101 p. 149
  30. % 0001 0101 p. 150
  31. *=$3800 p. 157
  32. .import binary “custom1.bin” p. 158
  33. Sprites p. 162
  34. %00000001 p. 166
  35. $D025 p. 171
  36. $D026 p. 171
  37. %00000001 p. 187
  38. CharPad p. 199
  39. SpritePad p. 237
  40. Reading Joys;ck Input – Part 1 p. 248
  41. %00011111 p. 249
  42. %11111111 p. 251
  43. Reading Bits and Bit Manipula;on p. 253
  44. 0 ORA 0 = 0 p. 259
  45. Reading Joys;ck Input – Part 2 p. 259
  46. %01111110 p. 262
  47. Moving a Sprite with Joys;ck Control p. 263
  48. Bit ShiUing p. 269
  49. $F0 $0F p. 271
  50. LSR p. 273
  51. AND #%00001111 p. 277
  52. LSR p. 277
  53. Zero Page p. 279
  54. $0400 p. 280
  55. LDA ($0020),y p. 282
  56. LDA #<$0400 p. 283
  57. LDA #>$0400 p. 283
  58. The Stack p. 290
  59. TXS p. 294
  60. KERNAL p. 297
  61. Raster Interrupts p. 300
  62. % 00011011 p. 310
  63. $D012 p. 310
  64. $EA81 p. 311
  65. $0314 and $0315 p. 311
  66. $D019 p. 312
  67. $D01A p. 313
  68. Includes p. 317
  69. *=MEMORY_ADDRESS p. 321
  70. Memory Map p. 322
  71. Config File p. 323
  72. LDA #ROOM_WIDTH p. 324
  73. Project Structure p. 325
  74. Libraries p. 328
  75. Main Game Code p. 331
  76. Setup Ideas and Sugges;ons p. 333
  77. Basic Upstart p. 337
  78. Making a Game p. 339
  79. Ge[ng Started p. 340
  80. Load and Display Background Graphics p. 355
  81. Sprite Collisions p. 368
  82. %00000001 p. 369
  83. $1A p. 372
  84. Sprite Anima;on p. 390
  85. Handle Sprites p. 400
  86. STA $D015 p. 406
  87. Update Sprite Registers p. 422
  88. HUD (Heads-Up Display) p. 427
  89. Playing Music p. 433
  90. PETSCII Codes and Text Rou;nes p. 437
  91. PETSCII code for A: 65 ($41) p. 438
  92. $0286 p. 439
  93. $FFF0 p. 439
  94. $FFD2 p. 440
  95. Reading Input from Keyboard p. 444
  96. $ffe4 - GETIN p. 444
  97. The Program Counter p. 445
  98. The End of the Line p. 446
  99. Appendix A – Screen Codes p. 447
  100. Appendix B – PETSCII Codes p. 452
  101. Appendix C – Recommended Links p. 454
  102. Appendix D – Code Examples p. 455