From 8338de8966689801fe7ca9b9eacac9027abb9acd Mon Sep 17 00:00:00 2001 From: Gareth Edwards Date: Thu, 23 Dec 2021 10:04:08 +0000 Subject: [PATCH] Align non-decimal pretty-print behaviour with built-ins Existing `hex.` builtin emits a space after the number; this commit does the same for the override. --- core/hackaday/utilities.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hackaday/utilities.fs b/core/hackaday/utilities.fs index 462fc47..0f9dc4e 100644 --- a/core/hackaday/utilities.fs +++ b/core/hackaday/utilities.fs @@ -27,8 +27,8 @@ : _nibble bl hold # # # # ; : _byte16 # # bl hold ; -: bin. 0 binary <# [char] ] hold 8 0 do _nibble loop bl hold [char] [ hold #> type decimal ; -: hex. ( 32-bit number ) 0 hex <# _byte16 _byte16 _byte16 # # #> type decimal ; +: bin. 0 binary <# [char] ] hold 8 0 do _nibble loop bl hold [char] [ hold #> type space decimal ; +: hex. ( 32-bit number ) 0 hex <# _byte16 _byte16 _byte16 # # #> type space decimal ; \ free memory / flash space: adapted from Embello libs