Skip to content

Commit

Permalink
Tutorial 5 - Clear Loop
Browse files Browse the repository at this point in the history
  • Loading branch information
petriw committed Feb 26, 2017
1 parent 473ee68 commit 6787222
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
Binary file modified .vs/Commodore64Programming/v14/.suo
Binary file not shown.
16 changes: 16 additions & 0 deletions 5-Clear Loop/ClearLoop.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
processor 6502
org $1000

lda #$00
sta $d020
sta $d021
tax
lda #$20

loop:
sta $0400,x
sta $0500,x
sta $0600,x
sta $0700,x
dex
bne loop
Binary file added 5-Clear Loop/ClearLoop.prg
Binary file not shown.
5 changes: 5 additions & 0 deletions Commodore64Programming.sln
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "4-Rendering a Sprite", "4-R
4-Rendering a Sprite\Sprites.asm = 4-Rendering a Sprite\Sprites.asm
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "5-Clear Loop", "5-Clear Loop", "{C0D21DAA-42A2-40E2-B275-14E648EB23FF}"
ProjectSection(SolutionItems) = preProject
5-Clear Loop\ClearLoop.asm = 5-Clear Loop\ClearLoop.asm
EndProjectSection
EndProject
Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit 6787222

Please sign in to comment.