Skip to content

Commit f1d3210

Browse files
committed
3.0.4 release
1 parent a46f9cd commit f1d3210

File tree

5 files changed

+41
-35
lines changed

5 files changed

+41
-35
lines changed

Changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## [Unreleased]
44

5+
## [3.0.4] - 2024-05-05
6+
7+
- [apple2] Add appkey support (thanks Eric Carr)
8+
- [cbm] Start of commodore support in fujinet
9+
- [coco] Start of coco support
10+
511
## [3.0.3] - 2024-04-02
612

713
Bugfix release:

apple2/src/fn_fuji/fuji_appkey_open.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
#include <stdint.h>
2-
#include "../../../fujinet-fuji.h"
3-
#include "../../../fujinet-bus-apple2.h"
2+
#include "fujinet-fuji.h"
3+
#include "fujinet-bus-apple2.h"
44

55
uint8_t fuji_appkey_open(AppKeyOpen *buffer)
66
{
7-
sp_error = sp_get_fuji_id();
7+
sp_error = sp_get_fuji_id();
88
if (sp_error <= 0) {
99
return false;
1010
}
1111

12-
sp_payload[0] = 5; // Packet size
13-
sp_payload[1] = 0;
14-
sp_payload[2] = buffer->creator & 0xFF;
12+
sp_payload[0] = 5; // Packet size
13+
sp_payload[1] = 0;
14+
sp_payload[2] = buffer->creator & 0xFF;
1515
sp_payload[3] = (buffer->creator & 0xFF00) >> 8;
16-
sp_payload[4] = buffer->app;
17-
sp_payload[5] = buffer->key;
18-
sp_payload[6] = buffer->mode;
16+
sp_payload[4] = buffer->app;
17+
sp_payload[5] = buffer->key;
18+
sp_payload[6] = buffer->mode;
1919

2020
sp_error = sp_control(sp_fuji_id, 0xDC);
2121
return sp_error == 0;
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
#include <stdint.h>
22
#include <string.h>
3-
#include "../../../fujinet-fuji.h"
4-
#include "../../../fujinet-bus-apple2.h"
3+
#include "fujinet-fuji.h"
4+
#include "fujinet-bus-apple2.h"
55

66
uint8_t fuji_appkey_read(AppKeyRead *buffer)
77
{
8-
sp_error = sp_get_fuji_id();
8+
sp_error = sp_get_fuji_id();
99
if (sp_error <= 0) {
1010
return false;
1111
}
1212

13-
sp_error = sp_status(sp_fuji_id, 0xDD);
13+
sp_error = sp_status(sp_fuji_id, 0xDD);
1414
if (sp_error == 0) {
15-
buffer->length = 0;
16-
if (sp_count>0 && sp_count <= MAX_APPKEY_LEN) {
17-
memcpy(buffer->value, &sp_payload[0], sp_count);
18-
buffer->length = sp_count;
19-
}
15+
buffer->length = 0;
16+
if (sp_count>0 && sp_count <= MAX_APPKEY_LEN) {
17+
memcpy(buffer->value, &sp_payload[0], sp_count);
18+
buffer->length = sp_count;
19+
}
2020
}
2121
return sp_error == 0;
2222
}
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
#include <stdint.h>
2-
#include "../../../fujinet-fuji.h"
3-
#include "../../../fujinet-bus-apple2.h"
2+
#include "fujinet-fuji.h"
3+
#include "fujinet-bus-apple2.h"
44
#include <string.h>
55

66
uint8_t fuji_appkey_write(uint16_t count, AppKeyWrite *buffer)
77
{
8-
sp_error = sp_get_fuji_id();
8+
sp_error = sp_get_fuji_id();
99

10-
if (sp_error <= 0) {
11-
return false;
12-
}
10+
if (sp_error <= 0) {
11+
return false;
12+
}
1313

14-
sp_payload[0] = 64;
15-
sp_payload[1] = 0;
14+
sp_payload[0] = 64;
15+
sp_payload[1] = 0;
1616

17-
// Sticking with a 64 payload size. Can we use smaller?
18-
memset(&sp_payload[2], 0, 64);
17+
// Sticking with a 64 payload size. Can we use smaller?
18+
memset(&sp_payload[2], 0, 64);
1919

20-
if (count>MAX_APPKEY_LEN)
21-
count = MAX_APPKEY_LEN;
22-
23-
memcpy(&sp_payload[2], buffer, count);
20+
if (count>MAX_APPKEY_LEN)
21+
count = MAX_APPKEY_LEN;
22+
23+
memcpy(&sp_payload[2], buffer, count);
2424

25-
sp_error = sp_control(sp_fuji_id, 0xDE);
26-
return sp_error == 0;
25+
sp_error = sp_control(sp_fuji_id, 0xDE);
26+
return sp_error == 0;
2727
}

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.3
1+
3.0.4

0 commit comments

Comments
 (0)