I found this for masm32 but can it be reasonably done without include ?
.386
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
.data
mp POINT <>
.code
start:
invoke Sleep,50
invoke GetCursorPos, ADDR mp
add mp.x,10
invoke SetCursorPos, mp.x, mp.y
cmp mp.x,1280
jae startb
jmp start
startb:
invoke Sleep,50
invoke GetCursorPos, ADDR mp
sub mp.x,10
invoke SetCursorPos, mp.x, mp.y
cmp mp.x, 5
jbe start
jmp startb
invoke ExitProcess,0
end start