Unnamed Fossil Project

Check-in [a437b1e95e]
Login

Check-in [a437b1e95e]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Updated sf commands to be more consistently named Added stub for SF BIOS
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a437b1e95efaa83794c72b9167de499e9562aba0
User & Date: rkeene 2006-09-27 11:31:38.000
Context
2008-04-05
20:52
Updated ignore list check-in: 092656a797 user: rkeene tags: trunk
2006-09-27
11:31
Updated sf commands to be more consistently named Added stub for SF BIOS check-in: a437b1e95e user: rkeene tags: trunk
2005-09-19
10:03
Wrote an sf compiler (asm-like syntax to sf ROM images) Wrote a test case SF Source file Added my RLE code Made a BF to SF conversion tool. check-in: f1575539e3 user: rkeene tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Added .fossil-settings/ignore-glob.












>
>
>
>
>
>
1
2
3
4
5
6
sf
sf/*
sfc
sfc/*
work
work/*
Added bios.sfc.
























>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
[init]
	code_size 2048

[main]
	loop_begin
		int 1
	loop_end

	int 0

[data]
79 0A
Changes to sf.c.
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
	unsigned char **ip; /* current position in ip_stack */
};

typedef enum {
	INT_HLT = 0,
	INT_PRT = 1,
	INT_PRTC = 2,
	INT_GET = 3
} interrupt_t;

void sf_dump(struct sf_machine *sys, const char *pre_msg, const char *post_msg) {
	size_t i, highest_offset;

        for (i = (sys->buflen - 1); i; i--) {
                if (sys->buf[i]) {







|







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
	unsigned char **ip; /* current position in ip_stack */
};

typedef enum {
	INT_HLT = 0,
	INT_PRT = 1,
	INT_PRTC = 2,
	INT_GETC = 3
} interrupt_t;

void sf_dump(struct sf_machine *sys, const char *pre_msg, const char *post_msg) {
	size_t i, highest_offset;

        for (i = (sys->buflen - 1); i; i--) {
                if (sys->buf[i]) {
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
			break;
		case INT_PRT:
			printf("%s", sys->dp);
			break;
		case INT_PRTC:
			printf("%c", sys->dp[0]);
			break;
		case INT_GET:
			sys->dp[0] = getchar();
			break;
	}

	return;
}








|







121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
			break;
		case INT_PRT:
			printf("%s", sys->dp);
			break;
		case INT_PRTC:
			printf("%c", sys->dp[0]);
			break;
		case INT_GETC:
			sys->dp[0] = getchar();
			break;
	}

	return;
}