From 0fc3575c939054d5e8c822e061f84ba63fa7c75c Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 18 Nov 2023 10:57:40 +0000 Subject: [PATCH] template param for chip capacity --- ram.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ram.h b/ram.h index caf80bd..e955004 100644 --- a/ram.h +++ b/ram.h @@ -1,9 +1,10 @@ #ifndef __RAM_H__ #define __RAM_H__ +template class ram: public Memory::Device { public: - static const unsigned page_size = 1024; + static const unsigned page_size = n; virtual void operator= (uint8_t c) { _mem[_acc] = c; } virtual operator uint8_t () { return _mem[_acc]; }