Skip to content

Commit

Permalink
changes to undoc op build
Browse files Browse the repository at this point in the history
  • Loading branch information
lfantoniosi committed Nov 5, 2023
1 parent 92f533c commit 37747d1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
12 changes: 8 additions & 4 deletions source/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,26 @@ define copy_to_bin
cp $(1) ../../bin/kernels/$(2)
endef

ifeq ($(strip $(ASSEMBLE_SYMBOLS)),)
EXTRA_SYMBOLS=
else
EXTRA_SYMBOLS=--define-symbols $(ASSEMBLE_SYMBOLS)
endif

define assemble
@printf "\n\033[0;36mAssembling %s\033[0m\n\n" $(1)
@$(N80) $(1) $$ $(2)
@$(N80) $(1) $$ $(2) $(EXTRA_SYMBOLS)
endef

define assemble_as
@printf "\n\033[0;36mAssembling %s as %s\033[0m\n\n" $(1) $(2)
@$(N80) $(1) $(2) $(3)
@$(N80) $(1) $(2) $(3) $(EXTRA_SYMBOLS)
endef

define print_linking
@printf "\n\033[0;36mLinking %s\033[0m\n\n" $(1)
endef


###################
### MAIN RULE ###
###################
Expand Down Expand Up @@ -607,7 +612,6 @@ drivers/Tang/Nextor-$(VERSION).WonderTANG.ROM: \
cat 256.bytes drivers/Tang/driver.bin > drivers/Tang/_driver.bin
$(MKNEXROM) nextor_base.dat $@ /d:drivers/Tang/_driver.bin /m:drivers/Tang/chgbnk.bin
$(call copy_to_bin,$@)
cp $@ /mnt/d/src/fpga/wonderTANG/WonderTANG/fpga/src/roms/Nextor-$(VERSION).WonderTANG-HC95.ROM.bin

drivers/Tang/chgbnk.bin: \
drivers/Tang/chgbnk.mac
Expand Down
3 changes: 3 additions & 0 deletions source/kernel/drivers/Tang/driver.mac
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
;
; Version by Luis Antoniosi
; Based on version 0.1 by Konamiman
;
; Open-source FPGA cartridge
; https://github.com/lfantoniosi/WonderTANG

org 4100h

Expand Down
4 changes: 2 additions & 2 deletions source/kernel/drv.mac
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ READ_BOOT:
ld ix,DEV_RW##
jp DO_CALBNK

IF UNDOC_OP
IFNDEF DISABLE_UNDOCUMENTED_OPCODES
;-----------------------------------------------------------------------------
;
; Convert the disk error returned by a device-based routine,
Expand Down Expand Up @@ -1082,7 +1082,7 @@ KDERJ:
ALIGN 7BD0h
;Here goes the 1K free area at the end of banks 0 and 3

IFE UNDOC_OP
IFDEF DISABLE_UNDOCUMENTED_OPCODES
;-----------------------------------------------------------------------------
;
; Convert the disk error returned by a device-based routine,
Expand Down
4 changes: 1 addition & 3 deletions source/kernel/macros.inc
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,7 @@ djpnz MACRO address
.list
;

UNDOC_OP equ 0 ; user or not undocummented Z-80 instructions

IF UNDOC_OP
IFNDEF DISABLE_UNDOCUMENTED_OPCODES
;;;;;;;;;;;;;;;;;;;;;;;;;;;

LD_IXL_N MACRO N
Expand Down

0 comments on commit 37747d1

Please sign in to comment.