main.c: In function 'vectordrawtopoint': main.c:46:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_cntl 0xD00C //VIA control register ^ main.c:98:16: note: in expansion of macro 'VIA_cntl' vectrexwrite (VIA_cntl, 0xCC); // Enable #ZERO and try to enable #BLANK ^~~~~~~~ main.c:14:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_port_b 0xD000 //VIA port B data I/O register ^ main.c:103:17: note: in expansion of macro 'VIA_port_b' vectrexwrite (VIA_port_b, 0x84); // Mux to Z, #RAMP disabled ^~~~~~~~~~ main.c:25:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_port_a 0xD001 //VIA port A data I/O register (handshaking) ^ main.c:104:17: note: in expansion of macro 'VIA_port_a' vectrexwrite (VIA_port_a, intensity); //Set Z ^~~~~~~~~~ main.c:14:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_port_b 0xD000 //VIA port B data I/O register ^ main.c:105:17: note: in expansion of macro 'VIA_port_b' vectrexwrite (VIA_port_b, 0x85); // Store Z ^~~~~~~~~~ main.c:46:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_cntl 0xD00C //VIA control register ^ main.c:108:58: note: in expansion of macro 'VIA_cntl' printf("read: %X from VIA_cntl (0xD00C)\n", vectrexread(VIA_cntl)); ^~~~~~~~ main.c:46:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_cntl 0xD00C //VIA control register ^ main.c:110:16: note: in expansion of macro 'VIA_cntl' vectrexwrite (VIA_cntl, 0xCE); //#ZERO Disabled, #BLANK Enabled ^~~~~~~~ main.c:14:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_port_b 0xD000 //VIA port B data I/O register ^ main.c:115:16: note: in expansion of macro 'VIA_port_b' vectrexwrite (VIA_port_b, 0x81); //Mux Disabled, #RAMP Disabled ^~~~~~~~~~ main.c:25:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_port_a 0xD001 //VIA port A data I/O register (handshaking) ^ main.c:116:16: note: in expansion of macro 'VIA_port_a' vectrexwrite (VIA_port_a, ystrength); //Y Strength ^~~~~~~~~~ main.c:14:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_port_b 0xD000 //VIA port B data I/O register ^ main.c:117:16: note: in expansion of macro 'VIA_port_b' vectrexwrite (VIA_port_b, 0x80); //Store Y ^~~~~~~~~~ main.c:14:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_port_b 0xD000 //VIA port B data I/O register ^ main.c:118:16: note: in expansion of macro 'VIA_port_b' vectrexwrite (VIA_port_b, 0x81); ^~~~~~~~~~ main.c:25:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_port_a 0xD001 //VIA port A data I/O register (handshaking) ^ main.c:119:16: note: in expansion of macro 'VIA_port_a' vectrexwrite (VIA_port_a, xstrength); //X Strength (connected directly, doesn't need to be stored) ^~~~~~~~~~ main.c:46:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_cntl 0xD00C //VIA control register ^ main.c:121:58: note: in expansion of macro 'VIA_cntl' printf("read: %X from VIA_cntl (0xD00C)\n", vectrexread(VIA_cntl)); ^~~~~~~~ main.c:46:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_cntl 0xD00C //VIA control register ^ main.c:127:17: note: in expansion of macro 'VIA_cntl' vectrexwrite (VIA_cntl, 0xEE); // Disable #ZERO and try to disable #BLANK ^~~~~~~~ main.c:34:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_shift_reg 0xD00A //VIA shift register ^ main.c:128:17: note: in expansion of macro 'VIA_shift_reg' vectrexwrite (VIA_shift_reg, 0xFF); // #BLANK disabled ^~~~~~~~~~~~~ main.c:29:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_t1_cnt_hi 0xD005 //VIA timer 1 count register hi ^ main.c:130:24: note: in expansion of macro 'VIA_t1_cnt_hi' vectrexwrite (VIA_t1_cnt_hi, 0); // start timer - Disables #BLANK -- should be t2? ^~~~~~~~~~~~~ main.c:46:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_cntl 0xD00C //VIA control register ^ main.c:134:17: note: in expansion of macro 'VIA_cntl' vectrexwrite (VIA_cntl, 0xCE); // #ZERO Disabled, #BLANK Enabled ^~~~~~~~ main.c:34:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_shift_reg 0xD00A //VIA shift register ^ main.c:135:17: note: in expansion of macro 'VIA_shift_reg' vectrexwrite (VIA_shift_reg, 0x00); // #BLANK Enabled ^~~~~~~~~~~~~ main.c:29:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_t1_cnt_hi 0xD005 //VIA timer 1 count register hi ^ main.c:137:17: note: in expansion of macro 'VIA_t1_cnt_hi' vectrexwrite (VIA_t1_cnt_hi, 0); // Start timer - Enabled #BLANK ^~~~~~~~~~~~~ main.c:14:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_port_b 0xD000 //VIA port B data I/O register ^ main.c:143:16: note: in expansion of macro 'VIA_port_b' vectrexwrite (VIA_port_b, 0x81); // Disable #RAMP ^~~~~~~~~~ main.c:34:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_shift_reg 0xD00A //VIA shift register ^ main.c:145:63: note: in expansion of macro 'VIA_shift_reg' printf("read: %X from VIA_shift_reg (0xD00A)\n", vectrexread(VIA_shift_reg)); ^~~~~~~~~~~~~ main.c:46:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_cntl 0xD00C //VIA control register ^ main.c:149:17: note: in expansion of macro 'VIA_cntl' vectrexwrite (VIA_cntl, 0xCC); // Enable #ZERO and enable #BLANK ^~~~~~~~ main.c:34:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_shift_reg 0xD00A //VIA shift register ^ main.c:150:17: note: in expansion of macro 'VIA_shift_reg' vectrexwrite (VIA_shift_reg, 0); // Enable #BLANK ^~~~~~~~~~~~~ main.c:46:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_cntl 0xD00C //VIA control register ^ main.c:158:18: note: in expansion of macro 'VIA_cntl' vectrexwrite (VIA_cntl, 0xCE); // Enable #ZERO and enable #BLANK ^~~~~~~~ main.c:34:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_shift_reg 0xD00A //VIA shift register ^ main.c:159:18: note: in expansion of macro 'VIA_shift_reg' vectrexwrite (VIA_shift_reg, 0); // Enable #BLANK ^~~~~~~~~~~~~ main.c: In function 'main': main.c:26:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_DDR_b 0xD002 //VIA port B data direction register (0=input 1=output) ^ main.c:183:16: note: in expansion of macro 'VIA_DDR_b' vectrexwrite (VIA_DDR_b, 0x9F); // All Outputs except COMPARE input and PB6 at Cartridge Port ^~~~~~~~~ main.c:27:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_DDR_a 0xD003 //VIA port A data direction register (0=input 1=output) ^ main.c:185:16: note: in expansion of macro 'VIA_DDR_a' vectrexwrite (VIA_DDR_a, 0xFF); // All Outputs ^~~~~~~~~ main.c:26:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_DDR_b 0xD002 //VIA port B data direction register (0=input 1=output) ^ main.c:187:60: note: in expansion of macro 'VIA_DDR_b' printf ("read: %X from VIA_DDR_b (0xD002)\n", vectrexread(VIA_DDR_b)); ^~~~~~~~~ main.c:27:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_DDR_a 0xD003 //VIA port A data direction register (0=input 1=output) ^ main.c:188:60: note: in expansion of macro 'VIA_DDR_a' printf ("read: %X from VIA_DDR_a (0xD003)\n", vectrexread(VIA_DDR_a)); ^~~~~~~~~ main.c:35:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_aux_cntl 0xD00B //VIA auxiliary control register ^ main.c:193:16: note: in expansion of macro 'VIA_aux_cntl' vectrexwrite (VIA_aux_cntl, 0x98); //Shouldn't shift registers be free-running? ^~~~~~~~~~~~ main.c:35:30: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define VIA_aux_cntl 0xD00B //VIA auxiliary control register ^ main.c:195:62: note: in expansion of macro 'VIA_aux_cntl' printf("read: %X from VIA_aux_cntl (0xD00B)\n", vectrexread(VIA_aux_cntl)); ^~~~~~~~~~~~