| 293 | } |
| 294 | |
| 295 | static void |
| 296 | init_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 */ |
| 314 | unsigned long tos_numcolors = 2; |
no outgoing calls
no test coverage detected