Skip to content

Commit

Permalink
possible fixes from Chip
Browse files Browse the repository at this point in the history
  • Loading branch information
ironsheep committed Jan 27, 2021
1 parent 38a72bc commit 4415479
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ In total now we've identified what needs to be encoded:
The command line for running the script is pretty simple:

```bash
$ ./pymorph -o animationTable.spin2
$ ./pymorph -o animationTable.out
```

This runs the script and instructs it to write the table output to a file named animationTable.spin2
This runs the script and instructs it to write the table output to a file named animationTable.out *I then copied this content into the approparite file of my spin2 code.*

## The Demo

Expand Down Expand Up @@ -116,7 +116,7 @@ If you like my work and/or this has helped you in some way then feel free to hel

## License

Copyright © 2020 Iron Sheep Productions, LLC. All rights reserved.<br />
Copyright © 2021 Iron Sheep Productions, LLC. All rights reserved.<br />
Licensed under the MIT License. <br>
<br>
Follow these links for more information:
Expand Down
12 changes: 8 additions & 4 deletions Src/isp_hub75_morph7seg.spin2
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,13 @@ PRI reconfigureForDigit(digitValue) | tblIndex, pLtTable, pRtTable, actionIndex,
turnOnDigit(digitValue)
else
'debug("m7:reconfig ", udec_(currValue), " -> ", udec_(digitValue))
pLtTable := long[@leftPtrs][currValue] + objectOffset
'pLtTable := LONG[@leftPtrs][currValue] + objectOffset
pLtTable := @@leftPtrs[currValue]

'debug(" - ", uhex_long(pLtTable))
pRtTable := LONG [pLtTable][digitValue] + objectOffset
'pRtTable := LONG [pLtTable][digitValue] + objectOffset
pRtTable := @@pLtTable[digitValue]
' remember to review @@ in P1 manual
'debug(" - ", uhex_long(pRtTable))
'repeat
if pRtTable <> NO_ACTIONS
Expand Down Expand Up @@ -229,9 +233,9 @@ leftPtrsActual long 0
leftPtrsAddr long @leftPtrs
objectOffset long 0

' NOTE from spin2 doc pg4 symbol standing alone inherits last declared type!!
' =======================================================================================================================
leftPtrs
LONG @tableLt0, @tableLt1, @tableLt2, @tableLt3, @tableLt4, @tableLt5, @tableLt6, @tableLt7, @tableLt8, @tableLt9
leftPtrs LONG @tableLt0, @tableLt1, @tableLt2, @tableLt3, @tableLt4, @tableLt5, @tableLt6, @tableLt7, @tableLt8, @tableLt9
' -----------------------------------------------------------------------------------------------------------------------
tableLt0
LONG NO_ACTIONS, @fm0_1, @fm0_2, @fm0_3, @fm0_4, @fm0_5, @fm0_6, @fm0_7, @fm0_8, @fm0_9
Expand Down

0 comments on commit 4415479

Please sign in to comment.