Skip to content

Commit

Permalink
Emulate Ultidos v1.0 (v2.6k)
Browse files Browse the repository at this point in the history
  • Loading branch information
markusC64 authored and markusC64 committed Mar 12, 2017
1 parent 2599faa commit b825b29
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions software/filemanager/dos.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ void Dos :: parse_command(Message *command, Message **reply, Message **status)
if (cmd >= 0x16 && cmd <= 0x1f) command->message[1] = 0xff;
if (cmd >= 0x23 && cmd <= 0x2f) command->message[1] = 0xff;
}
if (ultimatedosversion == -2)
{
int cmd = command->message[1];
if (cmd >= 0x09 && cmd <= 0x0f) command->message[1] = 0xff;
if (cmd >= 0x16 && cmd <= 0x1f) command->message[1] = 0xff;
if (cmd >= 0x23 && cmd <= 0x2f) command->message[1] = 0xff;
if (cmd == 0x15) command->message[1] = 0x17;
}

switch(command->message[1]) {
case DOS_CMD_IDENTIFY:
Expand Down
3 changes: 2 additions & 1 deletion software/io/c64/c64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ void C64 :: set_emulation_flags(cart_def *def)
if(getFpgaCapabilities() & CAPAB_COMMAND_INTF) {
int choice = cfg->get_value(CFG_CMD_ENABLE);
CMD_IF_SLOT_ENABLE = !!choice;
ultimatedosversion = choice;
if (choice != 2 || ultimatedosversion != -2)
ultimatedosversion = choice;
CMD_IF_SLOT_BASE = 0x47; // $DF1C
}
}
Expand Down
8 changes: 8 additions & 0 deletions software/userinterface/config_menu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ extern "C" {
#include "config.h"
#include "config_menu.h"


extern int ultimatedosversion;


/************************/
/* ConfigBrowser Object */
/************************/
Expand Down Expand Up @@ -147,6 +151,10 @@ int ConfigBrowser :: handle_key(int c)
}
ret = -2;
break;
case KEY_CTRL_HOME:
if (ultimatedosversion == 2)
ultimatedosversion = -2;
break;
case KEY_DOWN: // down
state->down(1);
break;
Expand Down

0 comments on commit b825b29

Please sign in to comment.