Search found 1125 matches

by 0xC0DE
Sun Jan 23, 2022 6:12 pm
Forum: programming
Topic: Write some BeebASM output to text file
Replies: 7
Views: 155

Re: Write some BeebASM output to text file

Redirect the output like I said, but don't use the -v (verbose) flag of beebasm. Then you will only see all your 'print' output in the txt file. Alternately, use findstr (type help findstr in cmd prompt to learn more) to filter the output from beebasm if you are looking for certain lines/patterns.
by 0xC0DE
Sun Jan 23, 2022 3:39 pm
Forum: programming
Topic: Write some BeebASM output to text file
Replies: 7
Views: 155

Re: Write some BeebASM output to text file

Redirect Beebasm's output?
beebasm -i mysource > listing.txt
by 0xC0DE
Wed Jan 19, 2022 9:12 am
Forum: development tools
Topic: e- Compiler package
Replies: 5
Views: 318

Re: e- Compiler package

e- compiler package v0.6a released. https://github.com/0xC0DE6502/e-_releases/tree/main/v0.6a if/ elif /else/endif /* block comments */ Function name (=16bit address) may be used in expression Access function result in the function itself with @_result Semicolon (;) optional after some keywords (if,...
by 0xC0DE
Sun Jan 16, 2022 12:23 pm
Forum: 8-bit acorn software: other
Topic: Manipulating ADFS images from command line
Replies: 13
Views: 216

Re: Manipulating ADFS images from command line

^ is a line separator in a batch file, I use it for readability. It's not needed if you put everything on 1 line.
| is part of the syntax of DIM.
by 0xC0DE
Sun Jan 16, 2022 12:10 pm
Forum: 8-bit acorn software: other
Topic: Manipulating ADFS images from command line
Replies: 13
Views: 216

Re: Manipulating ADFS images from command line

This has worked for me with DIM (from a .bat file in Windows). Also demonstrates overriding INF info. DiscImageManager.exe ^ "--new:ADFSM" ^ "--title:TRASHMAN" ^ "--dirtitle:$|TRASHMAN" ^ "--opt:3" ^ "--add:!BOOT|$|!BOOT|0|0|R" ^ "--add:LOADER|$...
by 0xC0DE
Sat Jan 15, 2022 12:16 pm
Forum: new projects in development: games
Topic: ElkXXLE
Replies: 16
Views: 486

Re: ElkXXLE

jms2 wrote:
Sat Jan 15, 2022 12:02 pm
&282 is the ram copy, he said that if you don’t keep these two locations synchronised the OS will flip back to the original mode. Did you find this to be the case?
Yes, but usually the OS won't be active in my games or demos so then it doesn't matter :mrgreen:
by 0xC0DE
Sat Jan 15, 2022 11:13 am
Forum: new projects in development: games
Topic: ElkXXLE
Replies: 16
Views: 486

Re: ElkXXLE

Use direct write to &FE07 to switch to different (faster) screen modes temporarily, either while drawing the map, or even during vsync to speed things up in your game. Use in combination with the palette registers &FE08/09 to hide the stuff you are doing on the screen. You cannot disable the...
by 0xC0DE
Sat Jan 15, 2022 11:09 am
Forum: new projects in development: games
Topic: ElkXXLE
Replies: 16
Views: 486

Re: ElkXXLE

Disable keyboard scanning (on Electron):

lda #0: sta &242

You can still scan for a particular key with OSBYTE &81
by 0xC0DE
Wed Jan 12, 2022 11:24 pm
Forum: development tools
Topic: e- Compiler package
Replies: 5
Views: 318

Re: e- Compiler package

e- Compiler package v0.5a released.
https://github.com/0xC0DE6502/e-_releas ... main/v0.5a

#ifdef/#endif and #ifndef/#endif implemented

Automatic fastcall for functions with:
1. One 8bit parameter
2. One 16bit parameter
3. Two 8bit parameters

Peephole optimiser tweaks for smaller code
by 0xC0DE
Mon Jan 10, 2022 8:53 pm
Forum: miscellaneous new bbc and electron games
Topic: Python for Acorn Electron and BBC Micro
Replies: 23
Views: 817

Re: Python for Acorn Electron and BBC Micro

Thanks BigEd and Pernod! Got my inspiration from https://hewco64.itch.io/vic-nibbler
by 0xC0DE
Mon Jan 10, 2022 1:02 pm
Forum: miscellaneous new bbc and electron games
Topic: Python for Acorn Electron and BBC Micro
Replies: 23
Views: 817

Re: Python for Acorn Electron and BBC Micro

Thanks to the both of you! :D
by 0xC0DE
Sun Jan 09, 2022 7:01 pm
Forum: miscellaneous new bbc and electron games
Topic: Python for Acorn Electron and BBC Micro
Replies: 23
Views: 817

Re: Python for Acorn Electron and BBC Micro

Thanks lovebug!

e- Compiler package is here: viewtopic.php?f=55&t=24008
by 0xC0DE
Sun Jan 09, 2022 3:40 pm
Forum: miscellaneous new bbc and electron games
Topic: Python for Acorn Electron and BBC Micro
Replies: 23
Views: 817

Re: Python for Acorn Electron and BBC Micro

Great game Thank you! Thanks! :mrgreen: I did manage to get it to crash, I'm not sure what happened but when I lost a life it seemed to miss the point where the head had crashed into the body and carried on trying to erase it forever. Ooh! If you ever manage to replicate that behaviour consistently...
by 0xC0DE
Sun Jan 09, 2022 3:36 pm
Forum: development tools
Topic: e- Compiler package
Replies: 5
Views: 318

Re: e- Compiler package

Maybe you can port Bozxle using e- with some inline asm to help you ease back into 6502 :mrgreen:
by 0xC0DE
Sat Jan 08, 2022 10:26 pm
Forum: miscellaneous new bbc and electron games
Topic: Python for Acorn Electron and BBC Micro
Replies: 23
Views: 817

Re: Python for Acorn Electron and BBC Micro

Python v0.2a https://github.com/0xC0DE6502/python-releases

Better loader
Coloured levels
Tape and disk images
Works on Elk and Beeb
by 0xC0DE
Sat Jan 08, 2022 4:51 pm
Forum: miscellaneous new bbc and electron games
Topic: Python for Acorn Electron and BBC Micro
Replies: 23
Views: 817

Re: Python for Acorn Electron and BBC Micro

There went my Saturday afternoon. Great game, excellent game play and it has that perfect "I lost because of my mistakes rather than the game beating me" meaning replayability time after time just to get a bit further. If I had any suggestions, maybe consider changing the maze colours as ...
by 0xC0DE
Sat Jan 08, 2022 4:47 pm
Forum: development tools
Topic: e- Compiler package
Replies: 5
Views: 318

e- Compiler package

Just released v0.4a: https://github.com/0xC0DE6502/e-_releas ... main/v0.4a

Includes my example game Python. Hopefully it will inspire others to create programs/games written in e- and compiled to 6502 asm for Acorn Electron and BBC Micro.
by 0xC0DE
Sat Jan 08, 2022 4:44 pm
Forum: miscellaneous new bbc and electron games
Topic: Python for Acorn Electron and BBC Micro
Replies: 23
Views: 817

Re: Python for Acorn Electron and BBC Micro

Source for the Python game is here: https://github.com/0xC0DE6502/e-_releas ... main/v0.4a

Together with version 0.4a of my e- Compiler package for building the game or your own programs!
by 0xC0DE
Sat Jan 08, 2022 12:54 pm
Forum: miscellaneous new bbc and electron games
Topic: Python for Acorn Electron and BBC Micro
Replies: 23
Views: 817

Re: Python for Acorn Electron and BBC Micro

Thank you and well done, Roland! :D
by 0xC0DE
Fri Jan 07, 2022 9:52 am
Forum: miscellaneous new bbc and electron games
Topic: Python for Acorn Electron and BBC Micro
Replies: 23
Views: 817

Re: Python for Acorn Electron and BBC Micro

Thanks Colin! Good suggestion, will do!
by 0xC0DE
Fri Jan 07, 2022 12:09 am
Forum: miscellaneous new bbc and electron games
Topic: Python for Acorn Electron and BBC Micro
Replies: 23
Views: 817

Re: Python for Acorn Electron and BBC Micro

Thank you! e- (language and compiler) is evolving as I go. You can play with a very early release here: https://github.com/0xC0DE6502/e-_releases e- can be used for general purpose programs but in combination with the libraries I have written for it, is also definitely suitable for writing (simple) ...
by 0xC0DE
Thu Jan 06, 2022 11:06 pm
Forum: miscellaneous new bbc and electron games
Topic: Python for Acorn Electron and BBC Micro
Replies: 23
Views: 817

Python for Acorn Electron and BBC Micro

My new 8bit game Python is written in my e- programming language and compiled to 6502 asm by my e- compiler. Python is a proof of concept for my e- compiler package. The e- source of Python will be published later. Python should run on Acorn Electron, BBC Micro and BBC Master, emulator or real machi...
by 0xC0DE
Mon Dec 27, 2021 5:40 pm
Forum: 8-bit acorn software: classic games
Topic: Aviator source, fully documented and explained
Replies: 9
Views: 477

Re: Aviator source, fully documented and explained

Another great achievement, simply amazing!! =D> =D> =D>
by 0xC0DE
Mon Dec 27, 2021 10:13 am
Forum: programming
Topic: Messing About with the Stack
Replies: 5
Views: 405

Re: Messing About with the Stack

Good to see that it works! I was just wondering why you need to use the CPU stack? Wouldn't something like this work equally well? .pushA ldx calc_stk sta stackbase,x dec calc_stk rts .pullA inc calc_stk ldx calc_stk lda stackbase,x rts Where stackbase could be any piece of reserved memory (max 256 ...
by 0xC0DE
Sat Dec 25, 2021 1:04 pm
Forum: 8-bit acorn software: classic games
Topic: Citadel Source Code (+ Crypt Capers + more)
Replies: 25
Views: 2650

Re: Citadel Source Code (+ Crypt Capers + more)

Wow, absolutely amazing and REALLY interesting, thank you very much!! =D> =D> =D>
by 0xC0DE
Fri Dec 24, 2021 9:45 pm
Forum: programming
Topic: Messing About with the Stack
Replies: 5
Views: 405

Re: Messing About with the Stack

You should be okay I think. Interrupts that happen shouldn't be a problem either as long as you realise they use 'your' stack as well.
by 0xC0DE
Sat Dec 18, 2021 1:48 pm
Forum: off-topic
Topic: Thoughts on a cross-compiler to the 6502
Replies: 4
Views: 241

Re: Thoughts on a cross-compiler to the 6502

Thanks tricky. Once you finally see generated code actually executing on the Elk/Beeb it's hard to stop. Looking forward to your project!
by 0xC0DE
Sat Dec 18, 2021 11:59 am
Forum: off-topic
Topic: Thoughts on a cross-compiler to the 6502
Replies: 4
Views: 241

Re: Thoughts on a cross-compiler to the 6502

I don't have all the answers but I'm writing a compiler targeting 6502 as well https://twitter.com/0xC0DE6502/status/1 ... 08610?s=20
It's a great learning experience. My programming language (e-) evolves with the compiler itself.
by 0xC0DE
Sun Nov 28, 2021 7:16 pm
Forum: development tools
Topic: BeebAsm
Replies: 212
Views: 31456

Re: BeebAsm

Rich Talbot-Watkins wrote:
Sun Nov 28, 2021 6:00 pm
I have a 90% complete BeebAsm 2.0 nearly ready for release
Well, that is the best thing I read all day! \:D/

Go to advanced search