diff --git a/BMP to CHIP/BMP to CH8.bas b/BMP to CHIP/BMP to CH8.bas deleted file mode 100644 index 6581a98..0000000 --- a/BMP to CHIP/BMP to CH8.bas +++ /dev/null @@ -1,40 +0,0 @@ -'BMP to CHIP-8 converter -'By Blyss Sarania -'BMP rendering code by HAP: -' -'"BMP Viewer, 02-06-05, by hap -'works with monochrome BMPs only, of course. put the BMP data (headerless) at -'offset $30. change offset $0 (200) $00ff to $1202 for Chip-8." - -ScreenRes 640,480,32 -WindowTitle "BMP to CHIP-8" -#Include Once "fbgfx.bi" -#Include Once "file.bi" -Using fb -Dim As UByte mode = 1 -Dim As UShort chipmode = &h0212 -Print "Will convert " & Command(1) & " to a chip executable." -Print "Press 1 for CHIP-8 mode(64x32)" -Print "Press 2 for SCHIP mode(128x64)" -Do - If MultiKey(SC_1) Then mode = 1: Exit Do: End if - If MultiKey(SC_2) Then mode = 2: Exit Do: End If - Sleep 15 -Loop - -Dim As Byte bmploader(0 To 47) -Open ExePath & "/bmploader.bin" For Binary As #1 -Get #1, 1, bmploader() -Close #1 - -Open Command(1) For Binary As #1 -Dim As Byte bmp(0 To Lof(1)-55) -Get #1, 55+8, bmp() -Close #1 - -If fileexists(Left(Command(1), Len(Command(1))-4) & ".ch8") Then Kill(Left(Command(1), Len(Command(1))-4) & ".ch8") -Open Left(Command(1), Len(Command(1))-4) & ".ch8" For Binary As #1 -Put #1, 1, bmploader() -Put #1, 49, bmp() -If mode = 1 Then Put #1, 1, chipmode -Close #1 \ No newline at end of file diff --git a/BMP to CHIP/BMP to CH8.exe b/BMP to CHIP/BMP to CH8.exe deleted file mode 100644 index ac0d08c..0000000 Binary files a/BMP to CHIP/BMP to CH8.exe and /dev/null differ diff --git a/BMP to CHIP/bmploader.bin b/BMP to CHIP/bmploader.bin deleted file mode 100644 index a8e1303..0000000 Binary files a/BMP to CHIP/bmploader.bin and /dev/null differ diff --git a/BMP to CHIP/readme.txt b/BMP to CHIP/readme.txt deleted file mode 100644 index 7ab597f..0000000 --- a/BMP to CHIP/readme.txt +++ /dev/null @@ -1,10 +0,0 @@ -BMP to CHIP-8 converter -By Blyss Sarania -Feed it a monochrome BMP. Either 128x64(SCHIP) or 64x32(CHIP-8) It will spit out a .ch8 program to render it. -It does not need be headerless for this program(the below text is just a credit to the author of the BMP loading code). - -BMP rendering code by HAP: - -"BMP Viewer, 02-06-05, by hap -works with monochrome BMPs only, of course. put the BMP data (headerless) at -offset $30. change offset $0 (200) $00ff to $1202 for Chip-8." \ No newline at end of file