utils: separated `rst28` function into `rst28.inc` file

This commit is contained in:
Ivan Tatarinov 2021-04-24 23:16:05 +03:00
parent 2b6f1f88ce
commit f882b0ffd2
11 changed files with 22 additions and 70 deletions

View File

@ -42,6 +42,7 @@ $(BUILD_DIR)/BACK16M: back16m.asm\
esxdos.def\ esxdos.def\
Print.inc\ Print.inc\
rdflsh.inc\ rdflsh.inc\
rst28.inc\
| $(BUILD_DIR) | $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $< $(AS) $(AFLAGS) --raw=$@ $<
@ -50,6 +51,7 @@ $(BUILD_DIR)/BACKZX2: back32m.asm\
esxdos.def\ esxdos.def\
Print.inc\ Print.inc\
rdflsh.inc\ rdflsh.inc\
rst28.inc\
| $(BUILD_DIR) | $(BUILD_DIR)
echo ' define zxdos 1' >back32m.def echo ' define zxdos 1' >back32m.def
$(AS) $(AFLAGS) --raw=$@ $< $(AS) $(AFLAGS) --raw=$@ $<
@ -60,6 +62,7 @@ $(BUILD_DIR)/BACKZXD: back32m.asm\
esxdos.def\ esxdos.def\
Print.inc\ Print.inc\
rdflsh.inc\ rdflsh.inc\
rst28.inc\
| $(BUILD_DIR) | $(BUILD_DIR)
echo ' define zxdos 0' >back32m.def echo ' define zxdos 0' >back32m.def
$(AS) $(AFLAGS) --raw=$@ $< $(AS) $(AFLAGS) --raw=$@ $<
@ -70,6 +73,7 @@ $(BUILD_DIR)/BACKUP: backup.asm\
esxdos.def\ esxdos.def\
Print.inc\ Print.inc\
rdflsh.inc\ rdflsh.inc\
rst28.inc\
| $(BUILD_DIR) | $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $< $(AS) $(AFLAGS) --raw=$@ $<
@ -78,6 +82,7 @@ $(BUILD_DIR)/CORCLEAN: corclean.asm\
Print.inc\ Print.inc\
rdflsh.inc\ rdflsh.inc\
wrflsh.inc\ wrflsh.inc\
rst28.inc\
| $(BUILD_DIR) | $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $< $(AS) $(AFLAGS) --raw=$@ $<
@ -87,6 +92,7 @@ $(BUILD_DIR)/COREBIOS: corebios.asm\
Print.inc\ Print.inc\
rdflsh.inc\ rdflsh.inc\
wrflsh.inc\ wrflsh.inc\
rst28.inc\
| $(BUILD_DIR) | $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $< $(AS) $(AFLAGS) --raw=$@ $<
@ -95,6 +101,7 @@ $(BUILD_DIR)/ROMSBACK: romsback.asm\
esxdos.def\ esxdos.def\
Print.inc\ Print.inc\
rdflsh.inc\ rdflsh.inc\
rst28.inc\
| $(BUILD_DIR) | $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $< $(AS) $(AFLAGS) --raw=$@ $<
@ -104,6 +111,7 @@ $(BUILD_DIR)/ROMSUPGR: romsupgr.asm\
Print.inc\ Print.inc\
rdflsh.inc\ rdflsh.inc\
wrflsh.inc\ wrflsh.inc\
rst28.inc\
| $(BUILD_DIR) | $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $< $(AS) $(AFLAGS) --raw=$@ $<
@ -112,6 +120,7 @@ $(BUILD_DIR)/UPGR16M: upgr16m.asm\
esxdos.def\ esxdos.def\
Print.inc\ Print.inc\
wrflsh.inc\ wrflsh.inc\
rst28.inc\
| $(BUILD_DIR) | $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $< $(AS) $(AFLAGS) --raw=$@ $<
@ -120,6 +129,7 @@ $(BUILD_DIR)/UPGRZX2: upgr32m.asm\
esxdos.def\ esxdos.def\
Print.inc\ Print.inc\
wrflsh.inc\ wrflsh.inc\
rst28.inc\
| $(BUILD_DIR) | $(BUILD_DIR)
echo ' define zxdos 1' >upgr32m.def echo ' define zxdos 1' >upgr32m.def
$(AS) $(AFLAGS) --raw=$@ $< $(AS) $(AFLAGS) --raw=$@ $<
@ -130,6 +140,7 @@ $(BUILD_DIR)/UPGRZXD: upgr32m.asm\
esxdos.def\ esxdos.def\
Print.inc\ Print.inc\
wrflsh.inc\ wrflsh.inc\
rst28.inc\
| $(BUILD_DIR) | $(BUILD_DIR)
echo ' define zxdos 0' >upgr32m.def echo ' define zxdos 0' >upgr32m.def
$(AS) $(AFLAGS) --raw=$@ $< $(AS) $(AFLAGS) --raw=$@ $<
@ -140,6 +151,7 @@ $(BUILD_DIR)/UPGRADE: upgrade.asm\
esxdos.def\ esxdos.def\
Print.inc\ Print.inc\
wrflsh.inc\ wrflsh.inc\
rst28.inc\
| $(BUILD_DIR) | $(BUILD_DIR)
$(AS) $(AFLAGS) --raw=$@ $< $(AS) $(AFLAGS) --raw=$@ $<

View File

@ -120,12 +120,6 @@ WriteOK ld de, $0040
include Print.inc include Print.inc
include rdflsh.inc include rdflsh.inc
include rst28.inc
rst28 ld bc, zxuno_port + $100
pop hl
outi
ld b, (zxuno_port >> 8)+2
outi
jp (hl)
FileName dz FLASH_FILE FileName dz FLASH_FILE

View File

@ -154,12 +154,6 @@ WriteOK ld de, $0040
include Print.inc include Print.inc
include rdflsh.inc include rdflsh.inc
include rst28.inc
rst28 ld bc, zxuno_port + $100
pop hl
outi
ld b, (zxuno_port >> 8)+2
outi
jp (hl)
FileName dz FLASH_FILE FileName dz FLASH_FILE

View File

@ -104,12 +104,6 @@ WriteOK ld de, $0040
include Print.inc include Print.inc
include rdflsh.inc include rdflsh.inc
include rst28.inc
rst28 ld bc, zxuno_port + $100
pop hl
outi
ld b, (zxuno_port >> 8)+2
outi
jp (hl)
FileName dz FLASH_FILE FileName dz FLASH_FILE

View File

@ -75,12 +75,6 @@ normal ld a, 0
include Print.inc include Print.inc
include rdflsh.inc include rdflsh.inc
include wrflsh.inc include wrflsh.inc
include rst28.inc
rst28 ld bc, zxuno_port + $100
pop hl
outi
ld b, (zxuno_port >> 8)+2
outi
jp (hl)
;FileName dz ROMS_FILE ;FileName dz ROMS_FILE

View File

@ -133,13 +133,7 @@ normal ld a, 0
include Print.inc include Print.inc
include rdflsh.inc include rdflsh.inc
include wrflsh.inc include wrflsh.inc
include rst28.inc
rst28 ld bc, zxuno_port + $100
pop hl
outi
ld b, (zxuno_port >> 8)+2
outi
jp (hl)
FileCore dz CORE_FILE FileCore dz CORE_FILE
FileBios dz BIOS_FILE FileBios dz BIOS_FILE

View File

@ -154,12 +154,6 @@ wrear0 wreg flash_cs, 0 ; activamos spi, enviando un 0
include Print.inc include Print.inc
include rdflsh.inc include rdflsh.inc
include rst28.inc
rst28 ld bc, zxuno_port + $100
pop hl
outi
ld b, (zxuno_port >> 8)+2
outi
jp (hl)
FileName dz ROMS_FILE FileName dz ROMS_FILE

View File

@ -182,12 +182,6 @@ wrear0 wreg flash_cs, 0 ; activamos spi, enviando un 0
include Print.inc include Print.inc
include rdflsh.inc include rdflsh.inc
include wrflsh.inc include wrflsh.inc
include rst28.inc
rst28 ld bc, zxuno_port + $100
pop hl
outi
ld b, (zxuno_port >> 8)+2
outi
jp (hl)
FileName dz ROMS_FILE FileName dz ROMS_FILE

View File

@ -126,12 +126,6 @@ ReadOK ld a, $40
include Print.inc include Print.inc
include wrflsh.inc include wrflsh.inc
include rst28.inc
rst28 ld bc, zxuno_port + $100
pop hl
outi
ld b, (zxuno_port >> 8)+2
outi
jp (hl)
FileName dz FLASH_FILE FileName dz FLASH_FILE

View File

@ -159,12 +159,6 @@ ReadOK ld a, $40
include Print.inc include Print.inc
include wrflsh.inc include wrflsh.inc
include rst28.inc
rst28 ld bc, zxuno_port + $100
pop hl
outi
ld b, (zxuno_port >> 8)+2
outi
jp (hl)
FileName dz FLASH_FILE FileName dz FLASH_FILE

View File

@ -109,12 +109,6 @@ ReadOK ld a, $40
include Print.inc include Print.inc
include wrflsh.inc include wrflsh.inc
include rst28.inc
rst28 ld bc, zxuno_port + $100
pop hl
outi
ld b, (zxuno_port >> 8)+2
outi
jp (hl)
FileName dz FLASH_FILE FileName dz FLASH_FILE