; automatic conditional jump expansion demo
.386
.MODEL FLAT
ExitProcess PROTO NEAR32 stdcall, dwExitCode:DWORD
.DATA
.CODE
_start:
xor ecx, ecx ; zero out ecx
jz quit_program ; fine: jump expansion beyond 128 bytes
;jecxz quit_program ; error A2075: jump destination too far: by 65409 byte(s)
byte 1024*64 dup (?) ; reserve 64 kb of data directly inside code segment
quit_program:
INVOKE ExitProcess, 0 ; exit with return code 0
PUBLIC _start ; make entry point public
END ; end of source code