Files
strb_inv/strb_inv.c
Markus Fröschle 5ee501eec5 initial import
2019-12-07 18:43:38 +01:00

31 lines
543 B
C

#include <stdio.h>
#include <stdint.h>
#include <osbind.h>
#include <mint/ostruct.h>
#include <mint/sysvars.h>
void __main(void)
{
;
}
volatile long *acp_config = (volatile long *) 0xff040000;
void inv_strb(void)
{
(void) Cconws("ACP_CONFIG(0)=");
(void) Cconws(*acp_config & 1 ? "1" : "0");
(void) Cconws("\r\n");
*acp_config ^= 1;
(void) Cconws("ACP_CONFIG(0)=");
(void) Cconws(*acp_config & 1 ? "1" : "0");
(void) Cconws("\r\n");
}
int main(int argc, char *argv[])
{
Supexec(inv_strb);
Pterm0();
}