Skip to content

Commit

Permalink
more Break fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Feb 18, 2024
1 parent 4f56852 commit 54eac44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ static char for_var;
static const char *for_val;
static int exiting;
static int break_on;
static int break_enabled;

/*
* File attribute constants
Expand Down Expand Up @@ -4368,7 +4369,7 @@ static void unlink_umb(void)

int do_int23(void)
{
return break_on;
return break_enabled;
}

static void set_break(int on)
Expand All @@ -4378,6 +4379,8 @@ static void set_break(int on)
r.x.ax = 0x3301; // set break handling
r.x.dx = on; // to "on"
__dpmi_int(0x21, &r);

break_enabled = on;
}

static void setup_break_handling(void)
Expand Down

0 comments on commit 54eac44

Please sign in to comment.