Skip to content
Discussion options

You must be logged in to vote

Ok, this wouldn't work. I didn't notice you saying Warmboot resets to 7 bit CONST.. What I'd rather need would be something like this:

#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <cpm.h>
#include <cpm/bdos.h>

#define MAX_PARAMS 8U

typedef char *char_p;

int main(int argc, char **argv)
{
  int i;
  char_p args[MAX_PARAMS +  1U];
  uint8_t bios_params[8U] = {
    0x5AU, /* unofficial constmd function */
    0U,    /* A */
    0U,    /* C */
    0U,    /* B */
    0U,    /* E */
    0U,    /* D */
    0U,    /* L */
    0U     /* H */
  };

  _bdos(BDOS_S_BIOS, ((uint16_t)(bios_params)));
  if (1 < argc) {
    if (MAX_PARAMS < argc)
      abort(…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Ho-Ro
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pawosm-arm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants