mirror of
https://github.com/Alvin-Zilverstand/bob16.git
synced 2026-11-22 21:13:00 +01:00
stuff
This commit is contained in:
1 parent
96cd1ac97d
commit
6dfe517094
33 files changed
+9970
-3177
No files matched your search
+29
-4
@@ -1,17 +1,42 @@
|
||||
#ifndef BOB_RUNTIME_H
|
||||
#define BOB_RUNTIME_H
|
||||
#include "bob.h"
|
||||
#if BOBC_WIDE
|
||||
#define HEAP_BASE 0xd000
|
||||
#define HEAP_WORDS 4096
|
||||
#define PROGRAM_BASE 0xc200
|
||||
#define PROGRAM_WORDS 3584
|
||||
#else
|
||||
#define HEAP_BASE 0xc000
|
||||
#define HEAP_WORDS 8192
|
||||
#define PROGRAM_BASE 0x9000
|
||||
#define PROGRAM_WORDS 12288
|
||||
#define PROGRAM_BASE 0xa000
|
||||
#define PROGRAM_WORDS 8192
|
||||
#endif
|
||||
#define WIDE_PROGRAM_BASE 0x20000
|
||||
#define WIDE_VARIABLE_BASE 0xf0000
|
||||
#define FILE_COUNT 8
|
||||
#define TEXT_WORDS 512
|
||||
#if BOBC_WIDE
|
||||
#define FILE_WORDS 4096
|
||||
#else
|
||||
#define FILE_WORDS 512
|
||||
#endif
|
||||
#define NAME_WORDS 24
|
||||
int strlen(char *text);
|
||||
int strcmp(char *a, char *b);
|
||||
void memcpy(int *dst, int *src, int count);
|
||||
void memset(int *dst, int value, int count);
|
||||
int file_find(char *name);
|
||||
int file_prepare_native(char *name);
|
||||
char *file_name(int slot);
|
||||
int *file_content(int slot);
|
||||
#if BOBC_WIDE
|
||||
void memcpy(void *dst, void *src, int count);
|
||||
void memset(void *dst, int value, int count);
|
||||
#else
|
||||
void word_copy(int *dst, int *src, int count);
|
||||
void word_fill(int *dst, int value, int count);
|
||||
#define memcpy(dst, src, count) word_copy((int *)(dst), (int *)(src), (count))
|
||||
#define memset(dst, value, count) word_fill((int *)(dst), (value), (count))
|
||||
#endif
|
||||
void print(char *text);
|
||||
void println(char *text);
|
||||
void print_dec(int number);
|
||||
|
||||
Reference in new issue
Block a user