Redjack
Banned
my chip8 emulator is now finish !
Click here for screenshots
Click here for screenshots
; april 11th 2006: tested with SCHIP (the original SCHIP interpreter) on EMU48
; and saw it didn't work, fixed it by removing hpflags operations, relative
; jump, and reducing the filesize by 1. to fit this in, some unnecessary
; delays were removed, and beeping at the titlescreen, max undo had to be
; reduced from 74 to 57. also made a trivial change: floornumber is now shown
; as F xx, instead of xx F.
Garstyciuks said:I would love to take a look at your source file, but it's encoded in linux newline format and I use lame windows, because I can't get linux working <properly> on my pc...![]()
#include<stdio.h>
int main()
{
int a=48;
int b=47;
int c=55;
int d=22;
printf("mod 2 = %d %d %d %d\r\n", a%2, b%2, c%2, d%2);
printf("and 1 = %d %d %d %d\r\n", a&1, b&1, c&1, d&1);
printf("mod 7 = %d %d %d %d\r\n", a%7, b%7, c%7, d%7);
printf("and 6 = %d %d %d %d\r\n", a&6, b&6, c&6, d&6);
return 0;
}
mod 2 = 0 1 1 0
and 1 = 0 1 1 0
mod 7 = 6 5 6 1
and 6 = 0 6 6 6