Commit graph

22 commits

Author SHA1 Message Date
Scott Shawcroft
adc3ae56d9
Merge pull request #17 from gamblor21/mov_operators
Add all mov operators
2021-03-24 08:39:35 -07:00
gamblor21
bb7c5717ab Add case of op and then space 2021-03-23 14:12:46 -05:00
55bee3f66c fix an error while raising an invalid instruction error 2021-03-22 21:09:54 -05:00
gamblor21
f3d4b2ff4c Black fix 2021-03-20 16:35:29 -05:00
gamblor21
1a5eed7263 Add all mov operators 2021-03-20 13:16:44 -05:00
0635463a78 disable a pylint diagnostic 2021-02-25 10:03:57 -06:00
3ad9fae9f7 assemble: better diagnose jump to undefined label 2021-02-25 09:19:35 -06:00
ebdf4e3d6b assemble: Diagnose duplicate labels
Closes #10
2021-02-25 09:19:25 -06:00
bfbd002c24 run black 2021-02-12 09:44:54 -06:00
f25d17af8e split instructions on commas and whitespace
All of the following now parse as `["mov", "pins", "1"]` and assemble to
0x6001:
```
out pins , 1 ;
out pins, 1  ;
out pins,1   ;
out pins ,1  ;
out pins 1   ;
```

This brings pioasm closer to what upstream's examples show

Closes: #7
2021-02-12 09:02:12 -06:00
Scott Shawcroft
cf81c94093
Merge pull request #5 from dglaude/patch-1
Fix for "; comment only lines"
2021-02-03 19:18:48 -08:00
Scott Shawcroft
4ceb54bdef
Black 2021-02-03 18:56:17 -08:00
Scott Shawcroft
897358415d
Update adafruit_pioasm.py 2021-02-03 13:32:10 -08:00
David Glaude
ef66ca9010
Remove print in library.
library should not print
2021-02-02 21:48:54 +01:00
Scott Shawcroft
61c8964705
Update adafruit_pioasm.py 2021-02-02 10:36:18 -08:00
luminousOwl
c4fbe187ab Shift mov operator 2021-02-01 19:12:36 -05:00
David Glaude
f70126c059
My fix for "; comment only lines"
This should fix #4 but there might be a better way.
2021-02-01 00:28:05 +01:00
luminousOwl
e089e82e26 Fix pull instruction parsing 2021-01-30 12:16:48 -05:00
ryang14
e4f2740f40
Fix wait source encoding
Change the wait instruction encoding to shift the source by 5 bits instead of 4.
2021-01-25 20:44:49 -05:00
Scott Shawcroft
7fc8625aea
Lint 2021-01-21 15:35:45 -08:00
Scott Shawcroft
5e8b820a52
Black 2021-01-21 15:26:20 -08:00
Scott Shawcroft
4cd0064413
Add initial PIOASM code 2021-01-21 10:01:11 -08:00