Click here to Skip to main content
15,917,645 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
AnswerRe: PC problem Pin
Amit_bh15-Jun-07 4:24
Amit_bh15-Jun-07 4:24 
AnswerRe: PC problem Pin
Dave Kreskowiak15-Jun-07 4:36
mveDave Kreskowiak15-Jun-07 4:36 
AnswerRe: PC problem Pin
Matthew Faithfull15-Jun-07 10:40
Matthew Faithfull15-Jun-07 10:40 
GeneralRe: PC problem Pin
Dave Kreskowiak16-Jun-07 14:47
mveDave Kreskowiak16-Jun-07 14:47 
AnswerRe: PC problem Pin
Matthew Faithfull28-Jun-07 7:15
Matthew Faithfull28-Jun-07 7:15 
QuestionMount manager and IOCTL_DISK_SET_DRIVE_LAYOUT problem Pin
Ugluk13-Jun-07 6:40
Ugluk13-Jun-07 6:40 
QuestionHow I can konw the GetDevicePowerStatu() using what DLLs Pin
Jone_liuVC10-Jun-07 22:23
Jone_liuVC10-Jun-07 22:23 
QuestionDos Real Mode and memory Pin
tommypa7510-Jun-07 0:30
tommypa7510-Jun-07 0:30 
Hello everyone,

i'm trying to solve strange problem which occurs in my small program
the basic idea is: [i'm working currently on virtual pc in dos real mode + borland c++ 3.11]

1) user gives me address in memory like 0xf4abc3d4
2) i have to start execuing program from that address

in order to not hang pc i should put 'ret' instruction to that
address and then start executing my program. Any idea how to do this ?

i've already written some code but unfortunately i doesn't work
properly (sometimes pc hangs because i don't know how to put ret instruction
to the specified address in memory)

bellow is my snippet of code:

unsigned long long *ptr;
unsigned long long *a = (unsigned long long*)malloc(sizeof(unsigned long long));

cout << "Give an address in memory: ";
scanf("%x",a);

// get pointer to that address
ptr = (unsigned long long*)*a;

// make a jump to that address
asm {
mov ax, ptr
// how to put 'ret' instruction before making call ?
call ptr
}

Any help will be appreciated

Kind regards
tommy
AnswerRe: Dos Real Mode and memory Pin
Paul Conrad13-Jul-07 13:37
professionalPaul Conrad13-Jul-07 13:37 
QuestionPlzz help Pin
Sahar1119-Jun-07 8:24
Sahar1119-Jun-07 8:24 
AnswerRe: Plzz help Pin
MatrixCoder11-Jun-07 17:37
MatrixCoder11-Jun-07 17:37 
Questionhow can I design network??? Pin
amitmistry_petlad 8-Jun-07 16:55
amitmistry_petlad 8-Jun-07 16:55 
AnswerRe: how can I design network??? Pin
MatrixCoder8-Jun-07 17:35
MatrixCoder8-Jun-07 17:35 
GeneralRe: how can I design network??? Pin
amitmistry_petlad 8-Jun-07 23:27
amitmistry_petlad 8-Jun-07 23:27 
GeneralRe: how can I design network??? Pin
MatrixCoder9-Jun-07 13:23
MatrixCoder9-Jun-07 13:23 
GeneralRe: how can I design network??? Pin
amitmistry_petlad 12-Jun-07 18:39
amitmistry_petlad 12-Jun-07 18:39 
GeneralRe: how can I design network??? Pin
MatrixCoder12-Jun-07 18:57
MatrixCoder12-Jun-07 18:57 
GeneralRe: how can I design network??? Pin
Sebastian Schneider13-Jun-07 23:42
Sebastian Schneider13-Jun-07 23:42 
Questionrobot controller boards Pin
AlcedoSoftware7-Jun-07 23:41
AlcedoSoftware7-Jun-07 23:41 
AnswerRe: robot controller boards Pin
tekmark8-Jun-07 13:24
tekmark8-Jun-07 13:24 
GeneralRe: robot controller boards Pin
AlcedoSoftware8-Jun-07 21:22
AlcedoSoftware8-Jun-07 21:22 
AnswerRe: robot controller boards Pin
Robert Surtees8-Jun-07 19:12
Robert Surtees8-Jun-07 19:12 
AnswerRe: robot controller boards Pin
Bob X16-Jun-07 16:43
Bob X16-Jun-07 16:43 
QuestionHard Drive question - Might be a dumb question but... Pin
jswarts4-Jun-07 5:38
jswarts4-Jun-07 5:38 
AnswerRe: Hard Drive question - Might be a dumb question but... Pin
Dan Neely4-Jun-07 7:07
Dan Neely4-Jun-07 7:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.