Skip to content

Commit

Permalink
Merge pull request #3 from Colpocorto/dev
Browse files Browse the repository at this point in the history
Fixed C89 compatibility
  • Loading branch information
Colpocorto authored Oct 26, 2023
2 parents 9ebd5fe + 4e1a5e8 commit 5b3e131
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/cli/basbinizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ bool write_cas(byte *buffer, off_t buf_size, byte *scr_buf, off_t scr_buf_size,
cas_loader_data[SCR_PATCH_POS2] = (byte)((scr_buf_size - 7) & 0xff);
cas_loader_data[SCR_PATCH_POS1 + 1] = (byte)(((scr_buf_size - 7) & 0xff00) >> 8);
cas_loader_data[SCR_PATCH_POS2 + 1] = (byte)(((scr_buf_size - 7) & 0xff00) >> 8);
cas_loader_data[SCR_PATCH_POS3] = 0; // NOP the JR to make the screen loading routine work
cas_loader_data[SCR_PATCH_POS3] = 0;
cas_loader_data[VM_PATCH_POS] = options.scr_mode;
}

Expand Down
15 changes: 7 additions & 8 deletions src/cli/basbinizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ byte bin_loader_data[BIN_LOADER_SIZE] = {
};

byte cas_loader_data[CAS_LOADER_SIZE] = {
0x1F, 0xA6, 0xDE, 0xBA, 0xCC, 0x13, 0x7D, 0x74, 0xD0, 0xD0, 0xD0, 0xD0, 0xD0, 0xD0, 0xD0, 0xD0, //#00
0xD0, 0xD0, 0x47, 0x41, 0x4D, 0x45, 0x20, 0x20, 0x1F, 0xA6, 0xDE, 0xBA, 0xCC, 0x13, 0x7D, 0x74, //#10
0x75, 0xF9, 0x10, 0xFA, 0x75, 0xF9, 0xF3, 0x3E, 0xC9, 0x32, 0x9A, 0xFD, 0x32, 0x9F, 0xFD, 0x3E, //#20
0x01, 0x21, 0xE9, 0xF3, 0x77, 0x3E, 0x01, 0x23, 0x77, 0x23, 0x77, 0xCD, 0x62, 0x00, 0x18, 0x20, //#30
0x21, 0x00, 0x80, 0x01, 0x00, 0x40, 0xCD, 0xCD, 0xF9, 0x3E, 0x02, 0xCD, 0x5F, 0x00, 0xCD, 0x41, //#40
0x00, 0x21, 0x00, 0x80, 0x11, 0x00, 0x00, 0x01, 0x00, 0x40, 0xCD, 0x5C, 0x00, 0xCD, 0x44, 0x00, //#50
0x21, 0x00, 0x80, 0x01, 0x00, 0x00, 0xCD, 0xCD, 0xF9, 0xF3, 0x22, 0xC2, 0xF6, 0x21, 0x01, 0x80, //#60
0x1F, 0xA6, 0xDE, 0xBA, 0xCC, 0x13, 0x7D, 0x74, 0xD0, 0xD0, 0xD0, 0xD0, 0xD0, 0xD0, 0xD0, 0xD0,
0xD0, 0xD0, 0x47, 0x41, 0x4D, 0x45, 0x20, 0x20, 0x1F, 0xA6, 0xDE, 0xBA, 0xCC, 0x13, 0x7D, 0x74,
0x75, 0xF9, 0x10, 0xFA, 0x75, 0xF9, 0xF3, 0x3E, 0xC9, 0x32, 0x9A, 0xFD, 0x32, 0x9F, 0xFD, 0x3E,
0x01, 0x21, 0xE9, 0xF3, 0x77, 0x3E, 0x01, 0x23, 0x77, 0x23, 0x77, 0xCD, 0x62, 0x00, 0x18, 0x20,
0x21, 0x00, 0x80, 0x01, 0x00, 0x40, 0xCD, 0xCD, 0xF9, 0x3E, 0x02, 0xCD, 0x5F, 0x00, 0xCD, 0x41,
0x00, 0x21, 0x00, 0x80, 0x11, 0x00, 0x00, 0x01, 0x00, 0x40, 0xCD, 0x5C, 0x00, 0xCD, 0x44, 0x00,
0x21, 0x00, 0x80, 0x01, 0x00, 0x00, 0xCD, 0xCD, 0xF9, 0xF3, 0x22, 0xC2, 0xF6, 0x21, 0x01, 0x80,
0x22, 0x76, 0xF6, 0x2B, 0x22, 0x48, 0xFC, 0xAF, 0x32, 0x00, 0x80, 0xC3, 0xAC, 0x73, 0xF3, 0xC5,
0xE5, 0x3A, 0x07, 0x00, 0x3C, 0x32, 0x0B, 0xFA, 0x32, 0x0F, 0xFA, 0xCD, 0xE1, 0x00, 0x38, 0xFB,
0xCD, 0xE4, 0x00, 0x38, 0xFB, 0xE1, 0x77, 0x23, 0x3A, 0x08, 0xFA, 0xEE, 0x06, 0x32, 0x08, 0xFA,
Expand Down Expand Up @@ -127,7 +127,6 @@ options_t options;
*/
uint16_t get_word_value(byte *pointer);
int get_octal(byte *buffer, int pos, FILE *output);
//int get_file_size(FILE *fi);
byte *get_input_file(char *infile, off_t infile_s);
int get_float(byte *buffer, int pos, FILE *output, bool is_double);
int8_t read_mantissa(byte *buffer, char *mantissa, int8_t length);
Expand Down

0 comments on commit 5b3e131

Please sign in to comment.