Assembly-constant

Write an assembly program  about having a classroom population of 23 girls and 26 boys, plus 14 transferee (9 of which is boys). Write an assembly code showing the header ‘Total Class Population’. Display the Total number of girls and boys, as well as the total overall population.   The EQU Directiv: The EQU directive is used … Continue reading Assembly-constant

Write an assembly that allocates 50 storage space for you name. Display your full name within that storage space.

section .text global _start ;must be declared for linker (ld) _start: ;tell linker entry point mov edx,50 ;message length mov ecx, name ;message to write mov ebx,1 ;file descriptor (stdout) mov eax,4 ;system call number (sys_write) int 0x80 ;call kernel mov eax,1 ;system call number (sys_exit) int 0x80 ;call kernel section .data name times 50 … Continue reading Write an assembly that allocates 50 storage space for you name. Display your full name within that storage space.