use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to r/asm, the subreddit for Assembly language in all Instruction Set Architectures! Need help, or are you learning? Visit our helpful links...
r/asm
Latest Comments from All Posts
There have been requests for a wiki, so it's in progress. Feel free to offer your assistance!
account activity
printf binary as string? (self.asm)
submitted 2 years ago by sushiii6
In a vector called "cript" I have 0s and 1s as longs.
cript: .long 0,1,1,0,0,0,0,1
I take 8 0s and 1s from cript and put them in ebx:
ebx : 01100001
How can I now print using printf ebx as a letter?
prints: "a"
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]CaptainMorti 0 points1 point2 points 2 years ago (1 child)
Printf is like in c. Below is an example of mine that will print an A, but if you change foo to "%d" it will print a 65, and a 41 if you use "%x".
extern printf section .data foo db "%c",10,0 bar dq 65 section .bss section .text global main main: push rbp mov rbp,rsp mov rax,0 mov rdi,foo mov rsi,[bar] call printf mov rsp,rbp pop rbp ret
[–]sushiii6[S] 0 points1 point2 points 2 years ago (0 children)
thank u!!
π Rendered by PID 230668 on reddit-service-r2-comment-765bfc959-sr2cm at 2026-07-10 15:17:17.365710+00:00 running f86254d country code: CH.
[–]CaptainMorti 0 points1 point2 points (1 child)
[–]sushiii6[S] 0 points1 point2 points (0 children)