Skip to content

Commit

Permalink
Add tests of short literals
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpovey committed Apr 26, 2012
1 parent 299ccbe commit 6c332a2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/short-literals.s
@@ -0,0 +1,18 @@
; test short literals
SET a, -300 ; long
SET a, -3 ; long
SET a, -2 ; long
SET a, -1 ; short in 1.5
SET a, 0
SET a, 1
SET a, 2
SET a, 3
SET a, 4
SET a, 5
; ...
SET a, 0x1d
SET a, 0x1c
SET a, 0x1e ; short
SET a, 0x1f ; long in 1.5
SET a, 0x20
SET a, 0x200

0 comments on commit 6c332a2

Please sign in to comment.