Browse Source

Rename PORTSWP -> PORTSCAN

patch
Wayne Warthen 3 years ago
parent
commit
dc151ad1a7
  1. 2
      Source/Apps/Test/Build.cmd
  2. 2
      Source/Apps/Test/Clean.cmd
  3. 2
      Source/Apps/Test/Makefile
  4. 11
      Source/Apps/Test/portscan/Build.cmd
  5. 0
      Source/Apps/Test/portscan/Clean.cmd
  6. 2
      Source/Apps/Test/portscan/Makefile
  7. 29
      Source/Apps/Test/portscan/portscan.asm
  8. 11
      Source/Apps/Test/portswp/Build.cmd

2
Source/Apps/Test/Build.cmd

@ -23,7 +23,7 @@ pushd ps2info && call Build || exit /b & popd
pushd 2piotst && call Build || exit /b & popd
pushd piomon && call Build || exit /b & popd
pushd banktest && call Build || exit /b & popd
pushd portswp && call Build || exit /b & popd
pushd portscan && call Build || exit /b & popd
goto :eof

2
Source/Apps/Test/Clean.cmd

@ -20,4 +20,4 @@ pushd ps2info && call Clean || exit /b 1 & popd
pushd 2piotst && call Clean || exit /b 1 & popd
pushd piomon && call Clean || exit /b 1 & popd
pushd banktest && call Clean || exit /b 1 & popd
pushd portswp && call Clean || exit /b 1 & popd
pushd portscan && call Clean || exit /b 1 & popd

2
Source/Apps/Test/Makefile

@ -1,5 +1,5 @@
OBJECTS =
SUBDIRS = DMAmon I2C inttest ppidetst ramtest tstdskng rzsz vdctest kbdtest ps2info 2piotst piomon banktest portswp
SUBDIRS = DMAmon I2C inttest ppidetst ramtest tstdskng rzsz vdctest kbdtest ps2info 2piotst piomon banktest portscan
DEST = ../../../Binary/Apps/Test
TOOLS =../../../Tools

11
Source/Apps/Test/portscan/Build.cmd

@ -0,0 +1,11 @@
@echo off
setlocal
set TOOLS=../../../../Tools
set PATH=%TOOLS%\tasm32;%PATH%
set TASMTABS=%TOOLS%\tasm32
tasm -t180 -g3 -fFF portscan.asm portscan.com portscan.lst || exit /b
copy /Y portscan.com ..\..\..\..\Binary\Apps\Test\ || exit /b

0
Source/Apps/Test/portswp/Clean.cmd → Source/Apps/Test/portscan/Clean.cmd

2
Source/Apps/Test/portswp/Makefile → Source/Apps/Test/portscan/Makefile

@ -1,4 +1,4 @@
OBJECTS = portswp.com
OBJECTS = portscan.com
DEST = ../../../../Binary/Apps/Test
TOOLS =../../../../Tools

29
Source/Apps/Test/portswp/portswp.asm → Source/Apps/Test/portscan/portscan.asm

@ -1,5 +1,5 @@
;===============================================================================
; PORTSWP - Sweep Ports
; PORTSCAN - Sweep Ports
;
;===============================================================================
;
@ -7,7 +7,7 @@
;_______________________________________________________________________________
;
; Usage:
; PORTSWP
; PORTSCAN
;
; Operation:
; Reads all ports (multiple ways) and displays values read
@ -173,32 +173,25 @@ portread:
portread_z80: ; use traditional "IN"
; read port using IN <portnum>
ld a,(curport) ; get current port
ld (port),a ; modify IN instruction
ld (pnum0),a ; modify IN instruction
nop ; defeat Z280 pipeline
nop
in a,($FF) ; read the port
port .equ $-1
pnum0 .equ $-1
ld (hl),a ; save it
inc hl ; bump value list pointer
;
; read port using IN (C)
ld a,(curport) ; get current port
ld b,0 ; in case 16 bits decoded
ld c,a ; move to reg C
in a,(c) ; read the port
ld (hl),a ; save it
inc hl ; bump value list pointer
ret
jr portread1
;
portread_z180: ; use "IN0"
; read port using IN <portnum>
ld a,(curport) ; get current port
ld (port1),a ; modify IN instruction
ld (pnum1),a ; modify IN instruction
in0 a,($FF) ; read the port
port1 .equ $-1
pnum1 .equ $-1
ld (hl),a ; save it
inc hl ; bump value list pointer
;
portread1:
; read port using IN (C)
ld a,(curport) ; get current port
ld b,0 ; in case 16 bits decoded
@ -588,10 +581,10 @@ stack .equ $ ; stack top
;
; Messages
;
msgban .db "PORTSWP v1.0, 14-Feb-2023",13,10
msgban .db "PORTSCAN v1.0, 16-Feb-2023",13,10
.db "Copyright (C) 2023, Wayne Warthen, GNU GPL v3",0
msguse .db "Usage: PORTSWP",13,10
msgprm .db "Parameter error (PORTSWP /? for usage)",0
msguse .db "Usage: PORTSCAN",13,10
msgprm .db "Parameter error (PORTSCAN /? for usage)",0
msgbio .db "Incompatible BIOS or version, "
.db "HBIOS v", '0' + rmj, ".", '0' + rmn, " required",0
str_sep .db ": ",0

11
Source/Apps/Test/portswp/Build.cmd

@ -1,11 +0,0 @@
@echo off
setlocal
set TOOLS=../../../../Tools
set PATH=%TOOLS%\tasm32;%PATH%
set TASMTABS=%TOOLS%\tasm32
tasm -t180 -g3 -fFF portswp.asm portswp.com portswp.lst || exit /b
copy /Y portswp.com ..\..\..\..\Binary\Apps\Test\ || exit /b
Loading…
Cancel
Save