Subversion Repositories Shiroi

Rev

Rev 18 | Rev 20 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18 Rev 19
Line 1... Line 1...
1
/* $Id: text.c 18 2024-08-29 06:56:23Z nishi $ */
1
/* $Id: text.c 19 2024-08-29 07:16:04Z nishi $ */
2
 
2
 
3
#include "text.h"
3
#include "text.h"
4
 
4
 
5
#include "video.h"
5
#include "video.h"
6
#include "math.h"
6
#include "math.h"
Line 62... Line 62...
62
	int size = muli(scrwidth, scrheight);
62
	int size = muli(scrwidth, scrheight);
63
	setvramaddr(0);
63
	setvramaddr(0);
64
	for(i = 0; i < size; i++) vramchar(' ');
64
	for(i = 0; i < size; i++) vramchar(' ');
65
}
65
}
66
 
66
 
67
void scroll_y(void){
-
 
68
	int i;
-
 
69
	int size = muli(scrwidth, scrheight - 1);
-
 
70
	for(i = 0; i < size; i++){
-
 
71
		setreadvramaddr(i + 32);
-
 
72
		unsigned char ch = getvramchar();
-
 
73
		setvramaddr(i);
-
 
74
		vramchar(ch);
-
 
75
	}
-
 
76
	for(i = 0; i < scrwidth; i++){
-
 
77
		vramchar(' ');
-
 
78
	}
-
 
79
}
-
 
80
 
-
 
81
void print_ptr(void* ptr){
67
void print_ptr(void* ptr){
82
	unsigned short p = (unsigned short)ptr;
68
	unsigned short p = (unsigned short)ptr;
83
	int i;
69
	int i;
84
	const char hex[] = "0123456789ABCDEF";
70
	const char hex[] = "0123456789ABCDEF";
85
	putstr("0x");
71
	putstr("0x");