Skip to content

Commit

Permalink
Consider function key display in MORE command (PC-98)
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 committed Dec 11, 2023
1 parent f015b83 commit 42f26fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/shell/shell_cmds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2962,8 +2962,9 @@ void DOS_Shell::CMD_MORE(char * args) {
uint16_t n=1;
StripSpaces(args);
if (IS_PC98_ARCH) {
LINES=real_readb(0x60,0x113) & 0x01 ? 25 : 20;
COLS=80;
LINES=real_readb(0x60,0x113) & 0x01 ? 25 : 20;
COLS=80;
if (real_readb(0x60,0x111)) LINES--; // Function keys displayed
} else {
LINES=(IS_EGAVGA_ARCH?real_readb(BIOSMEM_SEG,BIOSMEM_NB_ROWS):24)+1;
COLS=real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS);
Expand Down

0 comments on commit 42f26fa

Please sign in to comment.