... them. Given that these are simple mathematical functions, I'm hoping to find working code to reuse.
Me: The good news is that the comparison, io, memory, and stack unit tests are all passing. I think I will learn more by getting the interpreter and compiler working.
Claude: Good plan — the math can ...
Search found 633 matches: memory allocat*
Searched query: memory allocat*
- Mon Mar 23, 2026 4:48 pm
- Forum: Forth
- Topic: Claude and I Vibe Coded a Forth Interpreter
- Replies: 107
- Views: 2489
- Wed Mar 11, 2026 8:09 am
- Forum: General Discussions
- Topic: A pair of Tiny BASICs
- Replies: 15
- Views: 2204
Re: A pair of Tiny BASICs
Thanks, MIT is a fine choice - visual6502 uses it, for example.
For memory allocation, I was thinking of TOP, LOMEM and HIMEM kinds of pseudo-variables. In some cases users are expected to PEEK the respective zero page locations to figure out where things are. In some cases one might use a string ...
For memory allocation, I was thinking of TOP, LOMEM and HIMEM kinds of pseudo-variables. In some cases users are expected to PEEK the respective zero page locations to figure out where things are. In some cases one might use a string ...
- Mon Mar 02, 2026 9:32 am
- Forum: Programming
- Topic: Adventures in FAT32 with 65c02
- Replies: 203
- Views: 7865
Re: Adventures in FAT32 with 65c02
... The other approach is to use a predefined linearly allocated file, or more likely a second partition with _no_ file system as a flat 24-bit memory pool. Still a lot of thinking to do about that one, and to be of usable speed it would probably require a DMA system, but it would require only 32k ...
- Mon Feb 23, 2026 8:51 am
- Forum: Programming
- Topic: Adventures in FAT32 with 65c02
- Replies: 203
- Views: 7865
Re: Adventures in FAT32 with 65c02
... you automatically check the older records which may have been cleared.
For sanity's sake I keep copies of fsi_next_cluster and fsi_free_count in memory, and rewrite them after each allocation. At the last test - because it's very easy to break the entire filing system if I get something wrong ...
For sanity's sake I keep copies of fsi_next_cluster and fsi_free_count in memory, and rewrite them after each allocation. At the last test - because it's very easy to break the entire filing system if I get something wrong ...
- Sun Feb 08, 2026 9:07 pm
- Forum: Programming
- Topic: Introducing... PUNIX! A Puny UNIX
- Replies: 34
- Views: 2818
Re: Introducing... PUNIX! A Puny UNIX
... call)
The CREATE system call (new processes)
The VFS interface to the I/O (currently, only the WRITE call has been tested)
The GETMEM system call (memory allocator). FREEMEM hasn't been tested yet.
The code file is a little disorganized - I was adding syscalls to the bottom, and there are two or ...
The CREATE system call (new processes)
The VFS interface to the I/O (currently, only the WRITE call has been tested)
The GETMEM system call (memory allocator). FREEMEM hasn't been tested yet.
The code file is a little disorganized - I was adding syscalls to the bottom, and there are two or ...
- Sat Feb 07, 2026 11:12 am
- Forum: Programming
- Topic: Adventures in FAT32 with 65c02
- Replies: 203
- Views: 7865
Re: Adventures in FAT32 with 65c02
... compiler is 2 files of 2500 and 4100 lines respectively. I can not compile the compiler on the '816 system as it takes many hours and runs out of memory. The editor compiles in a few minutes.
And that's sort of where I'm at today, but the platform has moved to RISC-V (and ARM32) with memory sizes ...
And that's sort of where I'm at today, but the platform has moved to RISC-V (and ARM32) with memory sizes ...
- Fri Feb 06, 2026 9:56 pm
- Forum: Programming
- Topic: Adventures in FAT32 with 65c02
- Replies: 203
- Views: 7865
Re: Adventures in FAT32 with 65c02
... then that we can move to other FAT sectors, and then with deleted files from a full disk...
Note: LYA is a macro that loads Y:A as a pointer to memory, usually a 32-bit int. It gets used _everywhere_...
;-----------------------------------------------------------------------
; f_alloc ...
Note: LYA is a macro that loads Y:A as a pointer to memory, usually a 32-bit int. It gets used _everywhere_...
;-----------------------------------------------------------------------
; f_alloc ...
- Thu Feb 05, 2026 2:15 pm
- Forum: Programming
- Topic: Adventures in FAT32 with 65c02
- Replies: 203
- Views: 7865
Re: Adventures in FAT32 with 65c02
... The FSI is usually the sector following the VIB (it is on my disks).
(To avoid too many reads and writes to the disk, keep these two variables in memory).
FSI_Next_Cluster appears to hold the last cluster allocated, not the next free space. It's where MS say we should start looking for new space ...
(To avoid too many reads and writes to the disk, keep these two variables in memory).
FSI_Next_Cluster appears to hold the last cluster allocated, not the next free space. It's where MS say we should start looking for new space ...
- Thu Jan 29, 2026 6:35 pm
- Forum: Programming
- Topic: Introducing... PUNIX! A Puny UNIX
- Replies: 34
- Views: 2818
Re: Introducing... PUNIX! A Puny UNIX
... are alive than can fit into available core (RAM). Swapping is characteristic of older systems with small amounts of RAM. Demand paging brings into core parts of a program as it runs. Demand paging works in conjunction with virtual memory and is characteristic of most systems since the latter 1980s.
- Tue Jan 27, 2026 3:45 pm
- Forum: Programming
- Topic: Adventures in FAT32 with 65c02
- Replies: 203
- Views: 7865
Re: Adventures in FAT32 with 65c02
... other.
We maintain copies of FSI_Next_Cluster (where the system should start looking next time) and FSI_Free_Count (how many clusters remain) in memory, but we _must_ write the FSI_Free_Count cluster back each time we deallocate files.
So there are a total of a minimum of four sectors written to ...
We maintain copies of FSI_Next_Cluster (where the system should start looking next time) and FSI_Free_Count (how many clusters remain) in memory, but we _must_ write the FSI_Free_Count cluster back each time we deallocate files.
So there are a total of a minimum of four sectors written to ...
- Tue Jan 27, 2026 11:40 am
- Forum: SBC- Series Projects
- Topic: MY SBC 6502/65802
- Replies: 13
- Views: 6788
Re: MY SBC 6502/65802
... issue that's making me want to consider FAT. So, I'm still making a decision. I'm not sure FAT will be comfortable to work with with such modest memory resources, and I still need to get to grips with it. )))). I've mastered the process of writing memory blocks to HDDs and compact flash drives in ...
- Tue Jan 27, 2026 10:34 am
- Forum: SBC- Series Projects
- Topic: MY SBC 6502/65802
- Replies: 13
- Views: 6788
Re: MY SBC 6502/65802
... issue that's making me want to consider FAT. So, I'm still making a decision. I'm not sure FAT will be comfortable to work with with such modest memory resources, and I still need to get to grips with it. )))). I've mastered the process of writing memory blocks to HDDs and compact flash drives in ...
- Wed Jan 21, 2026 11:06 pm
- Forum: Forth
- Topic: A 65C02 emulator in TaliForth
- Replies: 7
- Views: 771
Re: A 65C02 emulator in TaliForth
... 16Kb) with the last six bytes set to the reset/nmi/irq vectors from his image. I concatenated that to the 32Kb Taliform image (leaving 16Kb of low memory for the emulator etc). I configured the emulator to use the 16Kb address space (14 constant MBITS) at a fixed location ($4000 constant MBASE ...
- Thu Jan 15, 2026 5:32 pm
- Forum: Programming
- Topic: Adventures in FAT32 with 65c02
- Replies: 203
- Views: 7865
Re: Adventures in FAT32 with 65c02
... things.
You will also have to enact strict rules about how one black box communicates with the other...effectively imitating in hard-coded memory regions what the 65C816 can do with stack operations. When I messed with this on the 65C02, I strictly used parameter blocks, even when it was ...
You will also have to enact strict rules about how one black box communicates with the other...effectively imitating in hard-coded memory regions what the 65C816 can do with stack operations. When I messed with this on the 65C02, I strictly used parameter blocks, even when it was ...
- Tue Jan 13, 2026 3:29 pm
- Forum: Programming
- Topic: Adventures in FAT32 with 65c02
- Replies: 203
- Views: 7865
Re: Adventures in FAT32 with 65c02
... FAT.
A third approach sacrifices the ability to use undelete utilities. Instead of simply marking deleted files as deleted, we reallocate the memory at delete time (marking the directory entry with zero for file size and cluster pointers). We don't change FSI_Nxt_Cluster so we keep writing new ...
A third approach sacrifices the ability to use undelete utilities. Instead of simply marking deleted files as deleted, we reallocate the memory at delete time (marking the directory entry with zero for file size and cluster pointers). We don't change FSI_Nxt_Cluster so we keep writing new ...