This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
usage_1: | |
.byte $0e,$08 | |
.encoding "petscii_mixed" | |
.text "Fractions Calculator" | |
.byte $00 | |
usage_2: | |
.byte $0e,$08 | |
.encoding "petscii_mixed" | |
.text "Press any key to continue" | |
.byte $00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#importonce | |
#import "subroutines.asm" | |
.const clearscreen = $e544; | |
.const print_str = $ab1e; | |
.const print_char = $ffd2 | |
.const getin = $ffe4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#importonce | |
#import "defenitions.asm" | |
#import "data.asm" | |
prepare_screen: | |
// set gren text color | |
lda #5 | |
sta text_color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "subroutines.asm" | |
BasicUpstart2( $1000 ) | |
*= $1000 | |
main: | |
jsr prepare_screen | |
jsr main_usage | |
menu: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.const clearscreen = $e544; | |
.const print_str = $ab1e; | |
.const print_char = $ffd2 | |
.const getin = $ffe4 | |
.const fp_string_to_fac = $b7b5; | |
.const fp_store_fac_to_ram = $bbd4 | |
.const fp_load_ram_to_fac = $bba2 | |
.const fp_fac_print = $aabc; | |
.const fp_mult = $ba28 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.const print_str = $ab1e; | |
.const clearscreen = $e544; | |
.const set_cursor = $e50c; | |
.const print_char = $ffd2 | |
.const getin = $ffe4 | |
.const fp_string_to_fac = $b7b5; | |
.const fp_store_fac_to_ram = $bbd4 | |
.const fp_load_ram_to_fac = $bba2 | |
.const fp_fac_print = $aabc; | |
.const fp_sqr = $bf71; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.const getin = $ffe4 | |
.const clearscreen = $e544; | |
.const print_str = $ab1e; | |
.const print_char = $ffd2 | |
.const set_cursor = $e50c; | |
.const background = $d021; | |
.const border = $d020; | |
.const text_color = $0286; | |
.const fp_string_to_fac = $b7b5; | |
.const fp_fac_print = $aabc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <conio.h> | |
#include <c64.h> | |
unsigned char defaultBGColor = 0; | |
unsigned char defaultBorderColor = 0; | |
unsigned char defaultTextColor = 0; | |
void setUpScreen( void ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _POSIX_C_SOURCE 200809L | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define MAX_STRING_LENGTH 100 | |
#define HASH_SEED 5381 |