Using overlays to hide initialization code (Developers)
The other thing I've done is use the initialization code (and PSP which isn't needed after a TSR is installed) memory for stack(s) and/or heap(s), even in TSRs. As Japheth noted, when you're using an HLL you don't have a lot of control over where things go in memory, but with ASM you have almost total control over everything (which can also get you into trouble).
Your issue (leaving unused/unwanted code/data in memory) is a problem with almost all modern programming techniques including even basic libraries where you only use a subset of the available features.
Complete thread:
- Using overlays to hide initialization code - mbbrutman, 06.08.2026, 07:29 (Developers)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- Using overlays to hide initialization code - mceric, 06.08.2026, 10:27
- Using overlays to hide initialization code - Laaca, 06.08.2026, 11:14
- Using overlays to hide initialization code - Japheth, 06.08.2026, 21:36
- Using overlays to hide initialization code - Oso2k, 06.08.2026, 22:07
- Using overlays to hide initialization code - bretjohn, 06.08.2026, 23:14
- Using overlays to hide initialization code - marcov, 06.08.2026, 23:17
- Using overlays to hide initialization code - mbbrutman, 07.08.2026, 01:15
- Using overlays to hide initialization code - bretjohn, 07.08.2026, 02:02
- Using overlays to hide initialization code - marcov, 07.08.2026, 10:06
- Using overlays to hide initialization code - bretjohn, 07.08.2026, 02:02
Mix view