Skip to content

Commit

Permalink
Build using ASxxxx 5.50
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed Oct 13, 2023
1 parent 8831f4a commit 5af6ab3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:

- name: Install asxxxx
run: |
wget --no-verbose --content-disposition https://github.com/6502org/6502.org/blob/849e49b56798da9f81d5f0a6c0a40f84668a5d6d/public/tools/asm/asxv5p40_20211216.zip?raw=true
unzip -q asxv5p40_20211216.zip
wget --no-verbose https://github.com/6502org/6502.org/raw/74f5d0c0f9b73d5e353bde7b3b25ea7f43b527a1/public/tools/asm/asxs5p50.zip
unzip -q asxs5p50.zip
make -C asxv5pxx/asxmak/linux/build all
echo "$PWD/asxv5pxx/asxmak/linux/build" >> $GITHUB_PATH
Expand Down
10 changes: 5 additions & 5 deletions firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ program: $(PROJECT_FLASH).hex $(PROJECT_FUSES).hex

$(PROJECT_FLASH).hex: main.asm
# add -i ".list" before -i ".include '$(DEFSFILE)'" to see it in the listing output
asavr -l -p -w -i ".include '$(DEFSFILE)'" -o $(PROJECT_FLASH) main.asm
asavr -l -p -w -i ".include '$(DEFSFILE)'" -o+$(PROJECT_FLASH) main.asm
aslink -i $(PROJECT_FLASH)
# srec_cat adds crc16 (requires srecord 1.64 or later)
srec_cat $(PROJECT_FLASH).ihx -intel -CRC16_Big_Endian $(CRC16ADDR) -broken -o $(PROJECT_FLASH).hex -intel -line-length=76 -crlf
rm $(PROJECT_FLASH).hlr $(PROJECT_FLASH).ihx $(PROJECT_FLASH).rel
srec_cat $(PROJECT_FLASH).hex -intel -CRC16_Big_Endian $(CRC16ADDR) -broken -o $(PROJECT_FLASH).hex.srec_cat -intel -line-length=76 -crlf
mv $(PROJECT_FLASH).hex.srec_cat $(PROJECT_FLASH).hex
rm $(PROJECT_FLASH).hlr $(PROJECT_FLASH).rel

$(PROJECT_FUSES).hex: fuses.asm
asavr -l -p -w -i ".include '$(DEFSFILE)'" -o $(PROJECT_FUSES) fuses.asm
asavr -l -p -w -i ".include '$(DEFSFILE)'" -o+$(PROJECT_FUSES) fuses.asm
aslink -i $(PROJECT_FUSES)
mv $(PROJECT_FUSES).ihx $(PROJECT_FUSES).hex
rm $(PROJECT_FUSES).hlr $(PROJECT_FUSES).rel

0 comments on commit 5af6ab3

Please sign in to comment.