; What: Example on how to display a message using EasyRequestArgs in Intuiiton. ; ; Author: Tomas Jacobsen - bedroomcoders.com ; Date: January 2026 ; Version: 1.0 opt d+ ; Include debug information in file output RAM:DisplayMessage ; Save program to RAM: incdir "include:" include "exec/exec_lib.i" include "intuition/intuition_lib.i" include "intuition/intuition.i" section my_code,code ;Initialization ;------------------------ _Init movea.l 4.w,a6 ; ExecBase in a6 moveq #0,d0 ; 0 = any version of intuition, 39 = at least OS 3.0 lea _IntuitionName,a1 jsr _LVOOpenLibrary(a6) move.l d0,_IntuitionBase beq.s .libraryError movea.l _IntuitionBase,a6 suba.l a0,a0 ; Set a0=0 - Display on default screen lea _EasyStruct,a1 ; Pointer to structure in a1 move.l #es_SIZEOF,es_StructSize(a1) ; Fill in size in structure clr.l es_Flags(a1) ; Set flags in structure to 0 move.l #_Title,es_Title(a1) ; Write a pointer to title into strucure move.l #_Message,es_TextFormat(a1) ; Write a pointer to message into strucure move.l #_OKMsg,es_GadgetFormat(a1) sub.l a2,a2 sub.l a3,a3 jsr _LVOEasyRequestArgs(a6) movea.l 4.w,a6 movea.l _IntuitionBase,a1 jsr _LVOCloseLibrary(a6) .libraryError moveq #0,d0 ; Return zero (no error) to the system rts section my_data,data _IntuitionName dc.b "intuition.library",0 even _Title dc.b "My message",0 even _Message dc.b "This is a message from my assembler code.",0 even _OKMsg dc.b "OK",0 even _EasyStruct ds.b es_SIZEOF ; EasyStruct for Requesters even _IntuitionBase dc.l 0
