Skip to content

Commit

Permalink
std asm
Browse files Browse the repository at this point in the history
  • Loading branch information
jtod committed Dec 26, 2023
1 parent 27c4e51 commit a456f8c
Show file tree
Hide file tree
Showing 13 changed files with 850 additions and 838 deletions.
10 changes: 5 additions & 5 deletions Examples/Standard/Testing/AsmStd.asm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ loop top R1,R2,R3
shiftl R5,R3,7 ; e503 3700
shiftr R4,R3,8 ; e404 3800
logicw R1,R2,R3,6 ; e105 2306
logicb R1,2,3,6,13 ; e106 236d
logicb R1,2,R3,4,6 ; 6 is the function
extract R1,3,5,R6,7 ; e107 3567
extracti R2,3,5,R6,7 ; e208 3567

Expand All @@ -46,10 +46,10 @@ loop top R1,R2,R3
orw R6,R7,R8 ; e605 7807 logicw
xorw R6,R7,R8 ; e605 7806 logicw

invb R1,3,9 ; e106 390c logicb
andb R2,3,4,5 ; e206 3451 logicb
orb R15,8,9,10 ; ef06 89a7 logicb
xorb R8,0,13,7 ; e806 0d76 logicb
; invb R1,3,9 ; e106 390c logicb
; andb R2,3,4,5 ; e206 3451 logicb ; problem statement
; orb R15,8,9,10 ; ef06 89a7 logicb
; xorb R8,0,13,7 ; e806 0d76 logicb

; field R6,3,7 ; e608 3700 extracti

Expand Down
6 changes: 6 additions & 0 deletions Examples/Standard/Testing/AsmStdErrors.asm.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
; AsmStdErrors: Test error messages for invalid assembly source
; Checking that assembler generates correct error messages
; Sigma16: https://jtod.github.io/home/Sigma16 John O'Donnell, 2024

; Bug: Assembler fails and doesn't provide error message...
; logicb R1,2,3,6,13 ; invalid operand format
3 changes: 3 additions & 0 deletions Examples/Standard/Testing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ <h1>Testing</h1>
<li> <a href="./AsmStd.asm.txt">AsmStd.asm.txt</a> Test assembly of each statement.
For checking that assembler generates correct object code.
</li>
<li> <a href="./AsmStdErrors.asm.txt">AsmStdErrors.asm.txt</a> Test error messages for invalid assembly source
Checking that assembler generates correct error messages
</li>
<li> <a href="./BitField.asm.txt">BitField.asm.txt</a> Test instructions that operate on bit fields.
Examples of extract and extracti.
</li>
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Version 3.6.4, October 2023
Version 3.6.5, December 2023
Loading

0 comments on commit a456f8c

Please sign in to comment.