convert.s

来自「汇编经典教程profession_assembly_language(Richa」· S 代码 · 共 31 行

S
31
字号
# convert.s - Converting lower to upper case.section .datastring1:   .asciz "This is a TEST, of the conversion program!\n"length:   .int 43.section .text.globl _start_start:   nop   leal string1, %esi   movl %esi, %edi   movl length, %ecx   cldloop1:   lodsb   cmpb $'a', %al   jl skip   cmpb $'z', %al   jg skip   subb $0x20, %alskip:   stosb   loop loop1end:   pushl $string1   call printf   addl $4, %esp   pushl $0   call exit

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?