MOV AL,30H ;location 30H of CMOS RAM OUT 70H,AL ;to be accessed IN AL,71H ;read its contents MOV CL,AL ;save it in CL MOV AL,31H ;location 31H of CMOS RAM OUT 70H,AL ;to be accessed IN AL,71H ;read its contents MOV CH,AL ;save it in CH ;now CX has the size of memory above 1MB (extended memory) ;installed in this PC,the size is in K bytes