We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Assembly++

From Esolang
Jump to navigation Jump to search

Assembly++ is x86 but with more commands.

Commands added

prc - Print Char (prc 65)
bcs - Delete one character (backspace) (bcs ; very ez)
cls - Clear screen (cls ; both works for bitmap and text)
ich - Input Char (ich ax)
wtic - Wait then input char (wtic ax ; ich but it waits until a key is pressed)
sqa - Square value (sqa rax)
sqr - Take square root of value (sqr rax)
sin - Sine value (sin rax)
cos - Cosine value (cos rax)
dmod - Change display mode (dmod 0 ; change to bitmap/dmod 1 ; change to text)
bcop - Big copy (bcop 0xB8000, 0xBFC3F, 0x200000 ; Copy screen to 0x200000)

for(Insert ax, ebx or smth here) - Example:

mov ebx, 10
foreax loop, ebx, 2 ; Loop label, counter register, increment value
loop:
 oint ebx
; Outputs 1084620 i guess

oint - Output integrer (oint 21)
cas - Convert keycode to ascii (cas ax)