Skip to content

Commit

Permalink
Correct syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
whampson committed Jun 15, 2019
1 parent 9aab304 commit b54fc9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions test/as/factorial.asm
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
; * R0 contains a value of 0 upon entry.
;===============================================================================

ORIGIN 4x0000
.ORIGIN 0x0000

; SEGMENT CodeSegment: ; TODO: support segments?
; .SEGMENT CodeSegment: ; TODO: support segments?
INIT:
; Load constants used throughout the program.
LDR R1, R0, NEG_ONE
Expand Down Expand Up @@ -68,10 +68,10 @@ HALT:


; Data input/output
INPUT: DATA2 5
RESULT: DATA2 0
INPUT: .FILL 5
RESULT: .FILL 0

; Constants
POS_ONE: DATA2 1
NEG_ONE: DATA2 -1
NEG_TWO: DATA2 -2
POS_ONE: .FILL 1
NEG_ONE: .FILL -1
NEG_TWO: .FILL -2
6 changes: 3 additions & 3 deletions test/as/halt.asm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ORIGIN 4x3000
.ORIGIN 0x3000

MAIN:
AND R3, R3, R3
Expand All @@ -22,5 +22,5 @@ HALT:
_HALT_LOOP:
BR _HALT_LOOP

CLOCK_EN: DATA2 4x8000
MCR: DATA2 4xFFFE
CLOCK_EN: .FILL 0x8000
MCR: .FILL 0xFFFE

0 comments on commit b54fc9e

Please sign in to comment.