Here' a version for Mode 5 with the comment removed. Change L% to be the number of lines to remove.
Note that there are "only" 320 bytes saved per line so you might want to put the code to do this in a loader or similar unless there are a significant number of lines.
Code:
L%=2MODE 5VDU 28,0,31,19,L%VDU 24,0;0;1279;1023-L%*32;H%=&5800+320*L%:HIMEM=H%VDU 23;6,32-L%;0;0;0H%=H% DIV 8VDU 23;12,H% DIV 256;0;0;0VDU 23;13,H% MOD 256;0;0;0VDU 23;7,34-L%/2;0;0;0
Statistics: Posted by ChrisB — Tue Feb 13, 2024 7:48 am