M
Notes:
No distinction is made between uppercase and lowercase.
This command accepts no parameters.
Anything characters following the "M" are ignored.
The purpose of this command is to show the memory usage at that moment. The term "slack" is just the difference between the start of the HEAP and the Stack Pointer at that instant, it doesn't mean that all of the slack area is available to be used. The Pixel abd iHex commands can affect the amount of memory available.
See also:> M HEAP starts: 0x02E0; present SP: 0x08F7; slack: 0x0617 bytes >DS+ 0x8F7 ; Display SRAM from the address given - the STACK SRAM contents: 08F0: 31-31 37 30 02 31 0D 3A C6 1170.1.:. >R+ ; Display both the Registers and the STACK 10 32 54 76 98 1110 1312 1514 1716 1918 2120 2322 2524 2726 2928 3130 SP RetAdd SREG ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -------- 0000 00DD 0947 FF28-0004 0000 0000 4000-0029 007E 5202 002B-002B 0230 0280 3166 08F5 694E Ithsvnzc STACK contents: 08F0: 31 34 AA-31 37 30 02 31 0D 3A C6 14.170.1.:. >P = 16 ; Allocate 48 bytes for use as WS2812 pixel data >P?+ ; Display that memory area SRAM contents: 02E0: 30 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 0............... 02F0: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0300: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 0310: 00 00 .. >DEH+ 0x3E0 2 ; iHex write commands allocate memory on the STACK EEPROM contents: :02000002E0001C :0203E000FFFF1D :00000001FF >M HEAP starts: 0x02E0; present SP: 0x08F7; slack: 0x0617 bytes >; Login using the '$' command as the first character on the line m>:02000002E0001C m>M ; Note the difference below HEAP starts: 0x02E0; present SP: 0x07E7; slack: 0x0507 bytes m>:00000001FF m>:00000001FF m>M ; Second End-Of-File command deallocates the iHex STACK allocation HEAP starts: 0x02E0; present SP: 0x08F7; slack: 0x0617 bytes m>
The iHex memory change, Pixel change read/write access, and Registers system commands as well as the EEbConfig_uVars variable, which configures the number of BYTEs to add to uVars.B[##] default of 32. |