From 36e70d36e1182fdd30ecf9eaf0dd5ff11bf5037c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 10 Feb 2021 23:01:11 -0800 Subject: [PATCH] 7714 --- baremetal/501draw-text.mu | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/baremetal/501draw-text.mu b/baremetal/501draw-text.mu index af3b3a49..c85eb260 100644 --- a/baremetal/501draw-text.mu +++ b/baremetal/501draw-text.mu @@ -113,6 +113,14 @@ fn draw-text-rightward screen: (addr screen), text: (addr array byte), x: int, x return xcurr } +fn draw-text-rightward-over-full-screen screen: (addr screen), text: (addr array byte), x: int, y: int, color: int, background-color: int -> _/eax: int { + var width/eax: int <- copy 0 + var height/ecx: int <- copy 0 + width, height <- screen-size screen + var result/eax: int <- draw-text-rightward screen, text, x, width, y, color, background-color + return result +} + fn draw-text-rightward-from-cursor screen: (addr screen), text: (addr array byte), xmax: int, color: int, background-color: int -> _/eax: int { var cursor-x/eax: int <- copy 0 var cursor-y/ecx: int <- copy 0