1 ; part of virtual processor, emulator for FIFTH
\r
5 mov ebx, edi ; read data from stack, and save it to variables
\r
37 cmp dword [cory] , 0 ; calculate Y start
\r
39 mov dword [starty], 0
\r
47 cmp dword [corx] , 0 ; calculate X start
\r
49 mov dword [startx], 0
\r
57 mov eax, [cory] ; calculate Y end
\r
70 mov eax, [corx] ; calculate X end
\r
83 mov eax, [endy] ; calculate Y length
\r
89 mov eax, [endx] ; calculate X length
\r
95 mov eax, [starty] ; calculate img1 start address
\r
101 mov [img1start], eax
\r
103 mov eax, [cory] ; calculate img2 start address
\r
111 mov [img2start], eax
\r
114 mov ebx, [img1start]
\r
116 mov edx, [img2start]
\r
120 add [img1start], eax
\r
122 add [img2start], eax
\r
123 dec dword [lengthy]
\r