This repository was archived by the owner on Apr 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ pub const RAM = struct {
109
109
return RAM {
110
110
.ctx = self ,
111
111
.vtable = & vtable ,
112
- .size = @divExact ( size , 2 ) ,
112
+ .size = size ,
113
113
};
114
114
}
115
115
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub fn main() !u8 {
31
31
var eeprom = aviron .EEPROM .Static (1024 ){};
32
32
var io = IO {
33
33
.sreg = undefined ,
34
- .sp = 2047 ,
34
+ .sp = sram . data . len - 1 ,
35
35
};
36
36
37
37
var cpu = aviron.Cpu {
@@ -66,8 +66,8 @@ pub fn main() !u8 {
66
66
try stdout .print ("Information for {s}:\n " , .{@tagName (cli .options .mcu )});
67
67
try stdout .print (" Generation: {s: >11}\n " , .{@tagName (cpu .instruction_set )});
68
68
try stdout .print (" Code Model: {s: >11}\n " , .{@tagName (cpu .code_model )});
69
- try stdout .print (" RAM: {d: >5} bytes\n " , .{cpu .flash .size });
70
- try stdout .print (" Flash: {d: >5} bytes\n " , .{cpu .sram .size });
69
+ try stdout .print (" Flash: {d: >5} bytes\n " , .{cpu .flash .size });
70
+ try stdout .print (" RAM: {d: >5} bytes\n " , .{cpu .sram .size });
71
71
try stdout .print (" EEPROM: {d: >5} bytes\n " , .{cpu .eeprom .size });
72
72
return 0 ;
73
73
}
You can’t perform that action at this time.
0 commit comments