Skip to content

Commit

Permalink
v2.1.1 beta 1 (#92)
Browse files Browse the repository at this point in the history
* Fix: DE registers corrupted by extended BIOS handling code (#88)
* Fix: GPART not returning correct IX and IY in NEXTOR.SYS (#89)
* Add the OCM kernel ROM to the build process. (#91)
* Update kernel version number to 2.1.1 beta 1 and NEXTOR.SYS version to 2.1.2 (#90)
  • Loading branch information
Konamiman committed Aug 19, 2021
1 parent 31f315e commit a297ad8
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 7 deletions.
6 changes: 5 additions & 1 deletion source/command/msxdos/sys.mac
Expand Up @@ -1017,6 +1017,11 @@ zstr_slow:
;LD E,RELEASE##+(RELEASE##/256)*16
ret

@GPART:
;Needs CALL (can't use JP) due to how FUNC_WITH_IXIY manages stack
call FUNC_WITH_IXIY
ret

FUNC_WITH_IXIY:
EXX
pop bc
Expand Down Expand Up @@ -1263,7 +1268,6 @@ _KBSDE: LD DE,BUFF1 ; DE -> buffer containing FIB or string.
@RALLOC:
@DSPACE:
@LOCK:
@GPART:
@Z80MODE:

;
Expand Down
4 changes: 2 additions & 2 deletions source/command/msxdos/ver.mac
Expand Up @@ -9,8 +9,8 @@
;
;
VERSION EQU 2
RELEASE EQU 1*256+1 ; Version 2.11.
CRYEAR EQU 2019
RELEASE EQU 1*256+2 ; Version 2.12.
CRYEAR EQU 2021
;
GLOBAL VERSION, RELEASE, CRYEAR
;
Expand Down
16 changes: 14 additions & 2 deletions source/kernel/Makefile
Expand Up @@ -4,7 +4,7 @@
# See the "all" main rule for some handy aliases to generate specific ROMs
# (e.g. you can run "make base" or "make ide").

VERSION := 2.1.1-alpha2
VERSION := 2.1.1-beta1

export X80_COMMAND_LINE=-t -nb
export M80_COMMAND_LINE=-8
Expand All @@ -31,7 +31,7 @@ endef
### MAIN RULE ###
###################

all: base ide ide-emu ascii8 ascii16 mfrsd flashjacks
all: base ide ide-emu ascii8 ascii16 mfrsd flashjacks ocm

TOOLS := M80 L80 LIB80 objcopy sdcc mknexrom dd

Expand Down Expand Up @@ -216,6 +216,18 @@ drivers/Flashjacks/Nextor-$(VERSION).Flashjacks.ROM: \
$(call copy_to_bin,$@)


### OCM (1-chip MSX, SX|2, and compatibles)

ocm: drivers/OCM/Nextor-$(VERSION).OCM.ROM

drivers/OCM/Nextor-$(VERSION).OCM.ROM: \
nextor_base.dat \
drivers/StandaloneASCII8/CHGBNK.BIN

mknexrom nextor_base.dat $@ /d:drivers/OCM/driver.dat /m:drivers/StandaloneASCII8/CHGBNK.BIN
$(call copy_to_bin,$@)


### Common rules

256.bytes:
Expand Down
6 changes: 6 additions & 0 deletions source/kernel/bank1/mapinit.mac
Expand Up @@ -687,6 +687,12 @@ MAPBIO::
; For other values of D, the EXTBIO hook on the driver bank is called with D'=1.
; This must return D'=1 if old hook must be called, D'=0 otherwise.

push de ;DE must always be preserved
call MAPBDO
pop de
ret

MAPBDO:
exx
set 0,d
exx
Expand Down
4 changes: 2 additions & 2 deletions source/kernel/condasm.inc
Expand Up @@ -8,9 +8,9 @@ HYBRID equ -1 ;DOS1/DOS2 hybrid system
STURBO equ -1 ;support super turbo mode (for MSXturboR)
BUILTIN equ -1 ;built-in system

ALPHA equ 2 ;Level of Alpha release (0: no alpha)
ALPHA equ 0 ;Level of Alpha release (0: no alpha)
ALPHAL equ "" ;Letter after the Alpha release number, or empty
BETA equ 0 ;Level of Beta release (0: no beta)
BETA equ 1 ;Level of Beta release (0: no beta)
RC equ 0 ;Level of RC (0: no RC)
RR equ 0 ;Level of release (0: no release level)
;
Expand Down
Binary file added source/kernel/drivers/OCM/driver.dat
Binary file not shown.

0 comments on commit a297ad8

Please sign in to comment.