Skip to content

Support x86 Win32 callbacks and add a controls sample - #15

Merged
DamianSuess merged 1 commit into
developfrom
feature/Sample-GUI
Nov 8, 2026
Merged

DamianSuess merged 1 commit into
developfrom
feature/Sample-GUI

Conversation

@DamianSuess

@DamianSuess DamianSuess commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Added the x86 memory-load and callback-return instructions. Created sample, hello-win86-controls.zasm with a Label, editable text box (Hello Zero!) and a button to show a message box.

Core Updates

  • Adds MOV r32, [mem] and RET imm16 support so ZASM programs can read callback arguments and clean up the stack when returning to Windows.
    • Memory encoding is shared with LEA, with validation for unsupported register widths and invalid return operands.
  • Adds hello-win86-controls.zasm, a native Win32 example with a label, an editable textbox containing “Hello Zero!”, and a button that displays the textbox’s current text in a message box.

…ample, `hello-win86-controls.zasm` with a Label, editable text box (Hello Zero!) and a button to show a message box.
@DamianSuess DamianSuess added this to the v0.0.3 milestone Nov 7, 2026
@DamianSuess DamianSuess self-assigned this Nov 7, 2026
@DamianSuess DamianSuess added the enhancement New feature or request label Nov 7, 2026
@DamianSuess DamianSuess changed the title Added the x86 memory-load and callback-return instructions (Sample Win32 GUI) Support x86 Win32 callbacks and add a controls sample Nov 8, 2026
@DamianSuess
DamianSuess merged commit cf36122 into develop Nov 8, 2026
@DamianSuess
DamianSuess deleted the feature/Sample-GUI branch November 8, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant