-
-
Notifications
You must be signed in to change notification settings - Fork 3
Simple initial example using command line development #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
paulscottrobson
wants to merge
10
commits into
X65:main
Choose a base branch
from
paulscottrobson:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5c8866b
Added very simple non-CA65 example
autismuk 599ce2e
Tweak to makefile
autismuk e0c6420
Text working
autismuk 3e80b9e
Tidied up text display
autismuk 9557650
Update cli/minimal/Makefile
paulscottrobson acf58c3
Update cli/minimal/Makefile
paulscottrobson 1ce60a4
Update .gitignore
paulscottrobson bd01428
Update test816.asm
paulscottrobson 31e81ec
Update test816.asm
paulscottrobson 3580eab
Update test816.asm
paulscottrobson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,2 +1,6 @@ | ||
| /build/ | ||
| /.cache/ | ||
| *.lst | ||
| *.xex | ||
| dap.log | ||
| 65816 |
This file contains hidden or 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,31 @@ | ||
| # ************************************************************************************** | ||
| # | ||
| # Very minimal makefile. | ||
| # | ||
| # ************************************************************************************** | ||
|
|
||
| # | ||
| # Path / Name of emulator. | ||
| # | ||
| EMULATOR = emu_linux_x64 | ||
| # | ||
| # 64tass optios. | ||
| # | ||
| ASMOPTS = -b -w -x | ||
|
|
||
| # | ||
| # Assemble the source | ||
| # | ||
| assemble: | ||
| 64tass test.asm $(ASMOPTS) -otest.xex -Ltest.lst | ||
| # | ||
| # Run program without break. | ||
| # | ||
| run: assemble | ||
| x65emu -q file=test.xex | ||
|
|
||
| # | ||
| # Run program and break on 65816 NOP ($EA) | ||
| # | ||
| runbrk: assemble | ||
| x65emu -q file=test.xex break=EA | ||
|
paulscottrobson marked this conversation as resolved.
Outdated
|
||
This file contains hidden or 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,38 @@ | ||
| ; ************************************************************************************** | ||
| ; | ||
| ; The worlds most simple test program. | ||
| ; | ||
| ; ************************************************************************************** | ||
|
|
||
| .autsiz ; generate code based on last REP/SEP | ||
| ; | ||
| ; Start code at $200 (e.g. above zero page and stack) | ||
| ; | ||
| ProgramStart = $200 | ||
|
|
||
| * = ProgramStart-6 | ||
| .word $FFFF ; first word of XEX file | ||
| .word ProgramStart ; first byte to copy | ||
| .word ProgramEnd-1 ; last byte to copy | ||
|
|
||
| ; | ||
| ; This is the main code block. | ||
| ; | ||
| nop ; so we can test the breakpoint. | ||
| clc ; switch to 65816 mode | ||
| xce | ||
| rep #$30 ; 16 bit AXY | ||
| dec a ; A will be $FFFF hence 16 bit. | ||
| ldx #$ABCD | ||
|
|
||
| h1: jmp h1 | ||
|
|
||
| ProgramEnd: | ||
|
|
||
| ; | ||
| ; The vector block follows, loaded into $FFE0 ... $FFFF | ||
| ; | ||
| .word $FFE0 | ||
| .word $FFFF | ||
| .word 0, 0, 0, 0, 0, 0, 0, 0 | ||
| .word 0, 0, 0, 0, 0, 0, ProgramStart, 0 |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -25,6 +25,8 @@ reset: | |
| xba | ||
| ; wai | ||
|
|
||
| nop | ||
|
|
||
| ora $12,s | ||
| lda ($23) | ||
| pea $1234 | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.