MCPcopy Create free account
hub / github.com/NetHack/NetHack / init_aline

Function init_aline

outdated/sys/atari/tos.c:295–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295static void
296init_aline()
297{
298#ifdef __GNUC__
299 /* line A calls nuke registers d0-d2,a0-a2; not all compilers regard these
300 as scratch registers, though, so we save them
301 */
302 asm(" moveml d0-d2/a0-a2, sp@-");
303 asm(" .word 0xa000; movel d0, __a_line");
304 asm(" moveml sp@+, d0-d2/a0-a2");
305#else
306 asm(" movem.l d0-d2/a0-a2, -(sp)");
307 asm(" .dc.w 0xa000"); /* tweak as necessary for your compiler */
308 asm(" move.l d0, __a_line");
309 asm(" movem.l (sp)+, d0-d2/a0-a2");
310#endif
311}
312
313/* used in termcap.c to decide how to set up the hilites */
314unsigned long tos_numcolors = 2;

Callers 2

get_scr_sizeFunction · 0.85
set_colorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected