Quantcast
Channel: Ubuntu 18.04.3 LTS get terminal columns and rows NASM - Code Review Stack Exchange
Browsing all 5 articles
Browse latest View live

Answer by Shift_Left for Ubuntu 18.04.3 LTS get terminal columns and rows NASM

Edward wrote:Jumps often take longer, and jumps without explicitly named targets are a recipe for future frustration.Yes, I remember the days when I used to spend hours just for that very reason, but...

View Article



Answer by Shift_Left for Ubuntu 18.04.3 LTS get terminal columns and rows NASM

As a result of a alternate method deliniated by Edward, overhead has been reduced from 168 bytes to 56 a 300% saving. ~$ nasm -felf64 appname.asm -oappname.o ~$ ld appname.o -oappname USE64 TIOCGWINSZ...

View Article

Answer by Edward for Ubuntu 18.04.3 LTS get terminal columns and rows NASM

Here are some things that may help you improve your programUse consistent formattingThe code as posted has irregular indentation, making it not so easy to read. Assembly language programs are typically...

View Article

Answer by Fifoernik for Ubuntu 18.04.3 LTS get terminal columns and rows NASM

A code-size optimizationIf you move the mov edi, Metrics instruction to just below the FindMatch label and thus have it repeat with each iteration, you can remove 4 instructions from the code. I've...

View Article

Ubuntu 18.04.3 LTS get terminal columns and rows NASM

As part of the prologue of all my console applications, I need to determine the extents of the current terminal so if there are less than 132 columns or 43 lines the user can be warned output may not...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images