Image Map Image Map
Results 1 to 3 of 3

Thread: Mindset Font Pointer and BLT String not working as expected.

  1. #1

    Default Mindset Font Pointer and BLT String not working as expected.

    This is a bit off the map, for sure.. but I am bending the ear of anyone who could help.

    I am trying to write new programs for the mindset, with examples available here:
    http://github.com/tschak909/mindset-examples

    one of the examples is "font" where I am trying to use the built in font bitblt functionality to display custom font data:
    https://github.com/tschak909/mindset...er/font/main.c

    The way I set up the various structures is thus:
    https://github.com/tschak909/mindset...et_gfx.h#L1589 <-- font struct
    https://github.com/tschak909/mindset...et_gfx.h#L1670 <-- text struct

    This should produce a few characters on screen..somehow it isn't.. :/ what could I be doing wrong?

    (FWIW, there is a working Mindset emulator in MAME git)

    -Thom

  2. #2

    Default

    I dont see any makefile in your stuff to check, are you doing -zp1 or #pragma pack(1) to pack your structs with openwatcom?

    seeing unsigned everywhere ugh... just include <stdint.h> and <inttypes.h> and use uint16_t/uint8_t etc for better portability.

    and really, you should maybe not do stuff like "unsigned seg;" its perfectly valid but very pre-ansi, personally hate pre-ansi k&r! just say 'unsigned int' if you need to do it that way or better.. uint16_t
    Last edited by BloodyCactus; August 5th, 2019 at 04:39 AM.

  3. #3

    Default

    I'll experiment with the struct packing options.

    As for the data types, I've spent the last year and a half porting my PLATO terminal program to over two dozen systems, with almost as many compilers and subtargets, so I've been in the mind of explicitly using lowest common denominator types. Not gonna change that to suit you, sorry.

    -Thom

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •