cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
memory clearing
memory clearing
Mar 21, 2013 at 12:07pm UTC
James Parsons
(181)
how would i clear all memory at adress b8000
Mar 21, 2013 at 2:10pm UTC
MiiNiPaa
(8886)
1) Why do you want that?
2) What do you mean by "all memory"? Single byte? Memory equals to size of some object? all memory from that address to end of program allocated memory?
Mar 21, 2013 at 2:47pm UTC
PanGalactic
(1658)
Simple:
1
2
3
char
* ptr = 0xb8000;
while
(
true
) *(ptr++) = 0;
Have fun.
Mar 21, 2013 at 2:58pm UTC
MiiNiPaa
(8886)
@
PanGalactic
, damn! I was waiting for his answer to suggest something similar.
Mar 21, 2013 at 5:32pm UTC
James Parsons
(181)
just to let you know its for OS Dev
Topic archived. No new replies allowed.