From 3d1334af1efd11999604b02d3cc13a59c32d8497 Mon Sep 17 00:00:00 2001 From: cracked-machine Date: Sun, 4 Feb 2024 23:34:52 +0000 Subject: [PATCH] centered name text --- doc/example/report.md | 8 ++++---- doc/example/report.png | Bin 8149 -> 7287 bytes mm/diagram.py | 34 +++++++++++++++++++++++++++------- 3 files changed, 31 insertions(+), 11 deletions(-) diff --git a/doc/example/report.md b/doc/example/report.md index 2f9f313..81d4f34 100644 --- a/doc/example/report.md +++ b/doc/example/report.md @@ -1,8 +1,8 @@ ![memory map diagram](report.png) |name|origin|size|remaining|collisions |:-|:-|:-|:-|:-| -|kernel|0x10|0x50|-0x10|{'rootfs': '0x50'}| -|uboot|0xD0|0x50|-0x10|{'uboot-scr': '0x110'}| -|rootfs|0x50|0x30|0x10|{'kernel': '0x50'}| +|kernel|0x10|0x50|-0x10|{'rootfs': '0x50'}| +|uboot|0xD0|0x50|-0x10|{'uboot-scr': '0x110'}| +|rootfs|0x50|0x30|0x10|{'kernel': '0x50'}| |dtb|0x90|0x30|0x10|{}| -|uboot-scr|0x110|0x30|0x2a8|{'uboot': '0x110'}| +|uboot-scr|0x110|0x30|0x2a8|{'uboot': '0x110'}| diff --git a/doc/example/report.png b/doc/example/report.png index 3ee0a21ba6bb7eb7654d0fb754466c3880a7f0f9..a256ff06063df14f821136dbbda54f3b5e91fcdb 100644 GIT binary patch literal 7287 zcmeI1c~Dbny2hil#&&^r7#kHM-PdtJHdz!Tn7CbOQ3OGyWeW}>4G|&+2n0e<+h%By zsBE&UOo*&$paTR9!IniqLDm4-*tb9e1VYFfUnxxHWgGrpmukmGjl9bH4X^ zpXc{}C*Jv-{igNX*FzwXO{c#*=>mbQT7*EfCfBV7|4@*bzlT6}AWok=b|E5bmWxS9 z9eX-4FG%0^Gqp-Q1IgTa!u6MbF?mv4Xa=c%!;#=1y z?X%jij)=wL$Sc7SrSkFZ-q8&Dc!s>Rhh$(1xf)Q2Uk%A34r_n)9cR_*c=*w8LZIvZ zAcWj%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