Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
19
Task/Reverse-a-string/OxygenBasic/reverse-a-string-2.basic
Normal file
19
Task/Reverse-a-string/OxygenBasic/reverse-a-string-2.basic
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
string s="qwertyuiop"
|
||||
sys p=strptr s, le=len s
|
||||
mov esi,p
|
||||
mov edi,esi
|
||||
add edi,le
|
||||
dec edi
|
||||
(
|
||||
cmp esi,edi
|
||||
jge exit
|
||||
mov al,[esi]
|
||||
mov ah,[edi]
|
||||
mov [esi],ah
|
||||
mov [edi],al
|
||||
inc esi
|
||||
dec edi
|
||||
repeat
|
||||
)
|
||||
|
||||
print s
|
||||
Loading…
Add table
Add a link
Reference in a new issue