Skip to content

Instantly share code, notes, and snippets.

@Godzil
Created October 17, 2019 14:03
Show Gist options
  • Save Godzil/c135f4a18fb32debaa7822dc850e4f8c to your computer and use it in GitHub Desktop.
Save Godzil/c135f4a18fb32debaa7822dc850e4f8c to your computer and use it in GitHub Desktop.
/* build: dmc.exe -mcdwu -c -o kanedatest.o kanedatest.c */
#include <dos.h>
#include <stdio.h>
struct bitmap {
int width;
int height;
};
extern struct bitmap far *spritesmind_ws;
struct bitmap far *getSpritesmind()
{
unsigned int offset = FP_OFF(spritesmind_ws);
return (struct bitmap far *)MK_FP(0x4000, offset);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment