mirror of
https://github.com/alfishe/amiga-bootcamp.git
synced 2026-06-13 00:26:28 +00:00
Comprehensive technical documentation covering: - Hardware: OCS/ECS/AGA custom chip registers, Copper & Blitter deep dives - Boot sequence: cold boot through startup-sequence - Binary format: HUNK executable spec, relocation, debug info - Linking & ABI: .fd files, LVO tables, register calling conventions - Exec kernel: tasks, interrupts, memory, signals, semaphores - AmigaDOS: file I/O, FFS/OFS layout, CLI/Shell scripting - Graphics: planar bitmaps, Copper programming, HAM/EHB modes - Intuition: screens, windows, IDCMP, BOOPSI - Devices: trackdisk, SCSI, serial, timer, audio, keyboard - Libraries: utility, expansion, IFFParse, locale, ARexx - Networking: bsdsocket API, SANA-II, TCP/IP stack comparison - Toolchain: GCC, vasm/vlink, SAS/C, NDK, debugging - Reverse engineering: IDA/Ghidra setup, compiler fingerprints, case studies - CPU & MMU: 68040/060 emulation libs, PMMU, cache management - Driver development: SANA-II, Picasso96/RTG, AHI audio All files include breadcrumb navigation. No local paths or proprietary content.
1.6 KiB
1.6 KiB
Requesters — EasyRequest, AutoRequest, ASL File Requester
Overview
Requesters are modal dialog boxes. Intuition provides EasyRequest for simple dialogs; asl.library provides file/font/screen-mode requesters.
EasyRequest (OS 2.0+)
struct EasyStruct es = {
sizeof(struct EasyStruct),
0,
"Warning", /* title */
"Delete file '%s'?", /* body (printf format) */
"Yes|No|Cancel" /* button labels (| separated) */
};
LONG result = EasyRequest(win, &es, NULL, filename);
/* Returns: 1=Yes, 0=Cancel, 2=No (rightmost non-zero, leftmost=0) */
/* For Yes|No: 1=Yes, 0=No */
ASL File Requester
struct Library *AslBase = OpenLibrary("asl.library", 39);
struct FileRequester *fr = AllocAslRequestTags(ASL_FileRequest,
ASLFR_TitleText, "Open File",
ASLFR_InitialDrawer, "SYS:",
ASLFR_InitialPattern, "#?.txt",
ASLFR_DoPatterns, TRUE,
TAG_DONE);
if (AslRequest(fr, NULL)) {
Printf("Selected: %s%s\n", fr->fr_Drawer, fr->fr_File);
}
FreeAslRequest(fr);
CloseLibrary(AslBase);
ASL Font Requester
struct FontRequester *fo = AllocAslRequestTags(ASL_FontRequest,
ASLFO_TitleText, "Select Font",
ASLFO_InitialName, "topaz.font",
ASLFO_InitialSize, 8,
ASLFO_DoStyle, TRUE,
TAG_DONE);
if (AslRequest(fo, NULL)) {
Printf("Font: %s %ld\n", fo->fo_Attr.ta_Name, fo->fo_Attr.ta_YSize);
}
FreeAslRequest(fo);
References
- NDK39:
intuition/intuition.h,libraries/asl.h - ADCD 2.1:
EasyRequest,AslRequest