-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from thomas374b/master
back-merge
- Loading branch information
Showing
19 changed files
with
73 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.PROCESSOR 68hc11 | ||
.ORG 0 | ||
|
||
addA 500,X ; word offset is not allowed with this mnemonic | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.PROCESSOR 68hc11 | ||
.ORG 0 | ||
|
||
andA 500,Y ; word offset is not allowed with this mnemonic | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.PROCESSOR 68hc908 | ||
.ORG 0 | ||
backLoop: | ||
cbeq (500,SP),backLoop ; word offset is not allowed with this mnemonic | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.PROCESSOR 68hc908 | ||
.ORG 0 | ||
backLoop: | ||
dbnz 400,SP,backLoop ; word offset is not allowed with this mnemonic | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../declare_var_mac.asm |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:0B800000CE0066359660A700B7006355 | ||
:00000001FF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
; | ||
; the purpose of this macro is to declare a global variable without need to know its exact location | ||
; the location is automatically derived from its predecessor 'next_var' which gets redefined at every | ||
; occurence. This way one can copy-paste, comment-out or conditional-define variable declarations | ||
; without worrying. Memory usage will be always as compact as possible | ||
; | ||
.PROCESSOR 6803 | ||
|
||
#ifnconst RAM_START | ||
RAM_START .EQU 0x80 | ||
#endif | ||
|
||
.mac declare_var ; {name},{size} | ||
{1} .EQU next_var | ||
next_var .set ({1}+{2}) | ||
.endm | ||
|
||
next_var .set RAM_START | ||
|
||
declare_var first, 1 ; declare variable name "first" 8bit | ||
declare_var second, 2 ; declare variable name "second" 16bit | ||
#if (RAM_START == 0x60) | ||
declare_var extra, 3 ; in case of special define, include variable extra 24bit | ||
#endif | ||
declare_var third, 4 ; declare variable name "third" 32bit | ||
|
||
.ORG 0x8000 | ||
|
||
example_code: | ||
ldx #third | ||
txs | ||
ldaa first | ||
staa ,X | ||
#if (RAM_START == 0x60) | ||
staa.w extra | ||
#endif | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:08800000CE0083359680A70035 | ||
:00000001FF |
Empty file.
Empty file.