diff --git a/asmtest b/asmtest new file mode 100644 index 0000000..7580cce Binary files /dev/null and b/asmtest differ diff --git a/asmtest.asm b/asmtest.asm new file mode 100644 index 0000000..d0bb59a --- /dev/null +++ b/asmtest.asm @@ -0,0 +1,30 @@ +FUNC_CNT SET -30 +FUNCDEF MACRO +_LVO\1 EQU FUNC_CNT +FUNC_CNT SET FUNC_CNT-6 + ENDM + + INCDIR "devpac:include/" + INCLUDE "exec/exec_lib.i" + INCLUDE "exec/libraries.i" # get the CALLLIB macro + INCLUDE "dos/dos_lvo.i" + + MOVE.L #DOSLibrary,A1 + MOVE.L #36,D0 + MOVEA.L 4,A6 + CALLLIB _LVOOpenLibrary + MOVE.L D0,DOSBase + + MOVE.L #Wow,D1 + MOVEA.L DOSBase,A6 + CALLLIB _LVOPutStr + + MOVEA.L DOSBase,A1 + MOVEA.L 4,A6 + CALLLIB _LVOCloseLibrary + RTS + +DOSBase DCB.L 1,0 + +DOSLibrary DC.B "dos.library",0 +Wow DC.B "wow",10,0 diff --git a/horizontal_copper.c b/horizontal_copper.c index 921fc26..519b213 100644 --- a/horizontal_copper.c +++ b/horizontal_copper.c @@ -4,24 +4,33 @@ #include #include #include - + +#include + #include "old_hardware_setup.h" - + extern struct GfxBase *GfxBase; extern far struct Custom custom; int main(void) { - struct OldHardwareSetup oldHardwareSetup; - - oldHardware_takeOver(&oldHardwareSetup); - - custom.dmacon = DMAF_SETCLR | DMAF_COPPER | DMAF_RASTER; - custom.dmacon = DMAF_AUDIO | DMAF_DISK | DMAF_SPRITE | DMAF_BLITTER; - - // set up a two bitplane display - // create a copperlist - // how do you write fonts to a bitpane? - - - oldHardware_giveBack(&oldHardwareSetup); + struct OldHardwareSetup oldHardwareSetup; + + void *copperlist; + UWORD *copperlist_ptr; + APTR *bitplane; + + oldHardware_takeOver(&oldHardwareSetup); + + custom.dmacon = DMAF_SETCLR | DMAF_COPPER | DMAF_RASTER; + custom.dmacon = DMAF_AUDIO | DMAF_DISK | DMAF_SPRITE | DMAF_BLITTER; + + // set up a two bitplane display + // create a copperlist + // how do you write fonts to a bitpane? + + copperlist = AllocMem(21000, MEMF_CHIP | MEMF_CLEAR); + + FreeMem(copperlist, 21000); + + oldHardware_giveBack(&oldHardwareSetup); }