rendered paste bodyalloc ascii,0;
convert:
cmp ecx,0;
je conv0;
cmp ecx,1;
je conv1;
cmp ecx,2;
je conv2;
cmp ecx,3;
je conv3;
cmp ecx,4;
je conv4;
cmp ecx,5;
je conv5;
cmp ecx,6;
je conv6;
cmp ecx,7;
je conv7;
cmp ecx,8;
je conv8;
cmp ecx,9;
je conv9;
jmp continue;
conv0:
mov #ascii,48;
jmp continue;
conv1:
mov #ascii,49;
jmp continue;
conv2:
mov #ascii,50;
jmp continue;
conv3:
mov #ascii,51;
jmp continue;
conv4:
mov #ascii,52;
jmp continue;
conv5:
mov #ascii,53;
jmp continue;
conv6:
mov #ascii,54;
jmp continue;
conv7:
mov #ascii,55;
jmp continue;
conv8:
mov #ascii,56;
jmp continue;
conv9:
mov #ascii,57;
jmp continue;
ret
CODE;
mainloop:
mov ecx,port0;
call convert;
continue:
jmp mainloop;