this repo has no description
at main 53 lines 1.3 kB view raw
1/* 2 SCRNEMDV.c 3 4 Copyright (C) 2006 Philip Cummins, Richard F. Bannister, 5 Paul C. Pratt 6 7 You can redistribute this file and/or modify it under the terms 8 of version 2 of the GNU General Public License as published by 9 the Free Software Foundation. You should have received a copy 10 of the license along with this file; see the file COPYING. 11 12 This file is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 license for more details. 16*/ 17 18/* 19 SCReeN EMulated DeVice 20 21 Emulation of the screen in the Mac Plus. 22 23 This code descended from "Screen-MacOS.c" in Richard F. Bannister's 24 Macintosh port of vMac, by Philip Cummins. 25*/ 26 27#include "PICOMMON.h" 28 29#include "SCRNEMDV.h" 30 31#if ! IncludeVidMem 32#define kMain_Offset 0x5900 33#define kAlternate_Offset 0xD900 34#define kMain_Buffer (kRAM_Size - kMain_Offset) 35#define kAlternate_Buffer (kRAM_Size - kAlternate_Offset) 36#endif 37 38GLOBALPROC Screen_EndTickNotify(void) 39{ 40 ui3p screencurrentbuff; 41 42#if IncludeVidMem 43 screencurrentbuff = VidMem; 44#else 45 if (SCRNvPage2 == 1) { 46 screencurrentbuff = get_ram_address(kMain_Buffer); 47 } else { 48 screencurrentbuff = get_ram_address(kAlternate_Buffer); 49 } 50#endif 51 52 Screen_OutputFrame(screencurrentbuff); 53}