Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --> Raspberry Pi/Pi400 as a C64 Development Station <--
- --> Setting up the Geany editor to look/feel like Turbo Macro Pro. <--
- Raspbian comes with Geany, a programming IDE intended for the use
- of Python/C on the Raspberry Pi. With a little work, it can be
- "adjusted" to the look/feel of running Turbo Macro Pro on a real C64.
- The advantages are the ability to look up information via web/pdf
- while you are programming and copy/paste information straight into
- your code. (ie: spritemate.com)
- Geany on requires tweaking it's configuration files to make this happen.
- I have a preference to a black background with large PETSCII characters,
- so this information is geared in that direction.
- Make the following adjustments to: filetypes.conf
- MENU: Tools-->Configuration Files-->filetypes.conf
- .--. .-'. .--. .--. .--. .--. .`-. .--.
- :::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\
- ' `--' `.-' `--' `--' `--' `-.' `--' `
- current_line=0x000000;0xffffff;true;false
- caret=caret;;true
- caret_width=3
- .--. .-'. .--. .--. .--. .--. .`-. .--.
- :::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\
- ' `--' `.-' `--' `--' `--' `-.' `--' `
- These lines already exist, and just need some adjustment.
- The first sets the "current line" to black background.
- The second two adjust the cursor to present as a block.
- Next, you'll need to make some changes to filetypes.asm.
- You could copy/paste the entirety of the following
- over the sections [styling] & [keywords].
- This is a work in progress, but it's pretty close as
- of this posting.
- MENU: Tools-->Configuration Files-->Filetype Configuration-->Programming Languages-->filetypes.asm
- .--. .-'. .--. .--. .--. .--. .`-. .--.
- :::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\
- ' `--' `.-' `--' `--' `--' `-.' `--' `
- [styling]
- default=0xffffff;0x000000;false;false
- number=0x867ADE;0x000000;false;false
- string=0xC18178;0x000000;false;false
- operator=0xffffff;0x000000;false;false
- identifier=0xB3B3B3;0x000000;false;false
- cpuinstruction=0x00901e;0x000000;true;false
- mathinstruction=0x483AAA;0x000000;true;false
- register=0xffffff;0x000000;true;false
- directive=0xB3EC91;0x000000;true;false
- directiveoperand=0xff901e;0x000000;false;false
- comment=0xD5DF7C;0x000000;false;false
- character=0x483AAA;0x000000;false;false
- extinstruction=0x007f7f;0x000000;false;false
- current_line=0x000000;0xffffff;true;false
- [keywords]
- # all items must be in one line
- instructions=adc and asl bcc bcs beq bit bmi bne bpl brk bvc bvs clc cld cli clv cmp cpx cpy dec dex dey eor inc inx iny jmp jsr lda ldx ldy lsr nop ora pha php pla plp rol ror rti rts sbc sec sei sta stx sty tax tay tsx txa txs tya
- registers=pc ac x y sr sp
- directives=org list nolist page equivalent word text equ section global extern %macro %endmacro db movsb stosb resb byte %1 %2 %3 %4 %5 %6 %7 %8 %9 %10
- .--. .-'. .--. .--. .--. .--. .`-. .--.
- :::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\
- ' `--' `.-' `--' `--' `--' `-.' `--' `
- This will provide the proper assembly Syntax highlighting. I've set
- most of these to Commodore colors on an 8bit background.
- This same file also contains the Compiler/Run commands. These are
- mine, but your pathnames may vary. Use these as a starting point.
- .--. .-'. .--. .--. .--. .--. .`-. .--.
- :::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\
- ' `--' `.-' `--' `--' `--' `-.' `--' `
- compiler=/bin/bash -c "acme --cpu 6510 --format cbm --outfile %e.prg %f"
- [build-menu]
- FT_00_LB=_Compile
- FT_00_CM=/bin/bash -c "acme --cpu 6510 --format cbm --outfile %e.prg %f"
- FT_00_WD=
- EX_00_LB=_Run with Vice
- EX_00_CM=~/vice-3.5/bin/x64 %e.prg && exit
- EX_00_WD=
- .--. .-'. .--. .--. .--. .--. .`-. .--.
- :::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\
- ' `--' `.-' `--' `--' `--' `-.' `--' `
- Next, you'll want the PETSCII font. I dug mine out of VICE and put it
- into the .fonts folder of my Raspberry Pi's user folders.
- You can change to it in MENU: Edit-->Preferences-->Interface
- Under MENU: View-->Change Color Scheme I use a scheme called "Delt Dark"
- with several adjustments made to it.
- It's a simple text file that needs to be located in:
- /home/pi/.config/geany/colorschemes
- Here's my "delt-dark.conf" file:
- .--. .-'. .--. .--. .--. .--. .`-. .--.
- :::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\
- ' `--' `.-' `--' `--' `--' `-.' `--' `
- #
- # Copyright Éric "delt" Tremblay
- #
- # Ported from a previous theme i made for kate/kwrite.
- # Licensed under GPL version 2, same as geany itself.
- #
- [theme_info]
- name=Delt Dark
- description=A dark-blueish theme, good for many programming languages
- # incremented automatically, do not change manually
- version=1
- author=Éric Tremblay
- url=https://github.com/geany/geany-themes/
- # list of each compatible Geany release version
- compat=1.22;1.23;1.23.1;1.24
- [named_styles]
- default=#c1c1c1;#000000;false;false
- error=#fff;#f00
- # Editor styles
- #-------------------------------------------------------------------------------
- selection=#000;#424d71;false;true
- current_line=#fff;#000000;true;false
- brace_good=#fff;#848;true;false
- brace_bad=#fff;#f00;true;false
- margin_line_number=#55a;#000
- margin_folding=#338;#113
- fold_symbol_highlight=#113
- indent_guide=#121d20
- caret=#fbff00;#fbff00;false
- marker_line=#000;#ff0
- marker_search=#000;#0000f0
- marker_mark=#000;#b8f4b8
- call_tips=#c0c0c0;#fff;false;false
- white_space=#111a25;;true
- # Programming languages
- #-------------------------------------------------------------------------------
- comment=#638aff;;false;false
- comment_doc=comment
- comment_line=comment
- comment_line_doc=comment_doc
- comment_doc_keyword=comment_doc,bold
- comment_doc_keyword_error=comment_doc,italic
- number=#ff54ff;;false;false
- number_1=number
- number_2=number_1
- type=#75ffd6;;true;false
- class=#00ff5c;;false;false
- function=default
- parameter=default
- keyword=#fff;;true;false
- keyword_1=#fff;;true;false;
- keyword_2=#0ff;;true;false;
- keyword_3=#0f0
- keyword_4=keyword_1
- identifier=#fff
- identifier_1=default
- identifier_2=#f0f
- identifier_3=#ff0
- identifier_4=#f00
- string=#d04eff;;true;false
- string_1=string
- string_2=string_1
- string_3=default
- string_4=default
- string_eol=string_1,italic
- character=string_1
- backticks=string_2
- here_doc=string_2
- scalar=string_2
- label=default,bold
- preprocessor=#00ff5c;;true;false
- regex=number_1
- operator=#b0c1ff;;true;false
- decorator=string_1,bold
- other=default
- # Markup-type languages
- #-------------------------------------------------------------------------------
- tag=#fff;;true;false
- tag_unknown=#ff4
- tag_end=#ff0;;true;false
- attribute=#0ff;;false;false
- attribute_unknown=attribute
- value=string_1
- entity=default
- # Diff
- #-------------------------------------------------------------------------------
- line_added=#008b8b
- line_removed=#6a5acd
- line_changed=preprocessor
- .--. .-'. .--. .--. .--. .--. .`-. .--.
- :::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\::::::::.\
- ' `--' `.-' `--' `--' `--' `-.' `--' `
- Finally, under MENU: View, I turn off most everything execpt line numbers, the status window, and the toolbar.
- Resources for installing VICE and ACME into Raspbian:
- --> Installing VICE <--
- https://krystof.io/installing-the-vice-commodore-emulator-for-console-mode-on-a-fresh-raspberry-pi-4/
- --> Installing ACME <--
- sudo apt-get install acme
- Keywords: Commodore, C64, Assembly 6510, Raspbian, Turbo Macro Pro.
Add Comment
Please, Sign In to add comment