0 Members and 2 Guests are viewing this topic.
; Program Name: Memory Checker; Author: David Gomes; Version: 0.1; Written for Doors CS 7.0 and higher.nolist#include "ti83plus.inc"#include "dcs7.inc".list .org userMem-2 .db $BB,$6DInit: B_CALL (_ClrLCDFull) set textWrite,(IY + sGrFlags) set fracDrawLFont,(IY + fontFlags) ld a,1 ld (penCol), a ld a,1 ld (penRow), a ld hl,Title B_CALL (_VPutS) ld h,0 ld l,9 ld d,95 ld e,9 ld a,1 call fastline res fracDrawLFont,(IY + fontFlags) ld a,10 ld (penRow),a ld a,1 ld (penCol),a B_CALL (_memchk) call VDispHL ld a,17 ld (penRow),a ld a,1 ld (penCol),a ld hl,OutOf B_CALL (_VPutS) ld a,24 ld (penRow),a ld a,1 ld (penCol),a ld de,24756 ld h,d ld l,e call VDispHL call iFastCopy B_CALL (_GetKey) ret Title: .db "Memory Checker",0OutOf: .db "out of",0
ld de,24756 ld h,d ld l,e call VDispHL
ld a,1 ld (penCol), a ld a,1 ld (penRow), a
ld a,1ld (penCol), ald (penRow), a
ld hl, 1*256+1 ;penRow * 256 + penCol ld (penCol), hl
; Program Name: Memory Checker; Author: David Gomes; Version: 0.2; Written for Doors CS 7.0 and higher.nolist#include "ti83plus.inc"#include "dcs7.inc".list .org progstart .db $BB,$6DInit: B_CALL (_ClrLCDFull) set textWrite,(IY + sGrFlags) set fracDrawLFont,(IY + fontFlags) ld a,1 ld (penCol), a ld (penRow), a ld hl,Title B_CALL (_VPutS) ld h,0 ld l,9 ld d,95 ld e,9 ld a,1 call fastline res fracDrawLFont,(IY + fontFlags) ld a,10 ld (penRow),a ld a,1 ld (penCol),a B_CALL (_memchk) call VDispHL ld a,17 ld (penRow),a ld a,1 ld (penCol),a ld hl,OutOf B_CALL (_VPutS) ld a,24 ld (penRow),a ld a,1 ld (penCol),a ld hl,24756 call VDispHL call iFastCopy B_CALL (_GetKey) res textWrite,(IY + sGrFlags) ret Title: .db "Memory Checker",0OutOf: .db "out of",0
; Program Name: Memory Checker; Author: David Gomes; Version: 0.2; Written for Doors CS 7.0 and higher.nolist#include "ti83plus.inc"#include "dcs7.inc".list .org progstart .db $BB,$6DInit: B_CALL (_ClrLCDFull) set textWrite,(IY + sGrFlags) set fracDrawLFont,(IY + fontFlags) ld a,1 ld (penCol), a ld (penRow), a ld hl,Title B_CALL (_VPutS) ld h,0 ld l,9 ld d,95 ld e,9 ld a,1 call fastline res fracDrawLFont,(IY + fontFlags) ld a,10 ld (penRow),a ld a,1 ld (penCol),a B_CALL (_memchk) call VDispHL ld a,17 ld (penRow),a ld a,1 ld (penCol),a ld hl,OutOf B_CALL (_VPutS) ld a,24 ld (penRow),a ld a,1 ld (penCol),a ld hl,24756 call VDispHL ld a,57 ld (penRow),a ld a,1 ld (penCol),a ld hl,MadeBy B_CALL (_VPutS) call iFastCopy B_CALL (_GetKey) res textWrite,(IY + sGrFlags) ret Title: .db "Memory Checker",0OutOf: .db "out of",0 MadeBy: .db "by David Gomes",0
;4 bytes ld d, 95 ld e, 5 ;to;3 bytes ld de, 95*256+5
;10 bytes ld a, 17 ld (penRow), a ld a, 1 ld (penCol), a ;to;6 bytes ld hl, 17*256+1 ld (penCol), hl
And don't forget the header Looking great so far. As a suggestion, how about calculating the actual amount of max RAM? It's not always 24,576 bytes. I think there's a pointer with a certain value that you subtract $9D95 from to get the amount of RAM the user could potentially use. Forgot what it was though.