虫虫首页|资源下载|资源专辑|精品软件
登录|注册

abort

  • abort how to learn visual basic in 24 hours

    abort how to learn visual basic in 24 hours

    标签: visual abort basic hours

    上传时间: 2013-12-21

    上传用户:a673761058

  • ARM处理器的工作模式

    ARM处理器的工作模式 ARM处理器状态    ARM微处理器的工作状态一般有两种,并可在两种状态之间切换:第一种为ARM状态,此时处理器执行32位的字对齐的ARM指令;第二种为Thumb状态,此时处理器执行16位的、半字对齐的Thumb指令。在程序的执行过程中,微处理器可以随时在两种工作状态之间切换,并且,处理器工作状态的转变并不影响处理器的工作模式和相应寄存器中的内容。但ARM微处理器在开始执行代码时,应该处于ARM状态。  ARM处理器状态    进入Thumb状态:当操作数寄存器的状态位(位0)为1时,可以采用执行BX指令的方法,使微处理器从ARM状态切换到Thumb状态。此外,当处理器处于Thumb状态时发生异常(如IRQ、FIQ、Undef、abort、SWI等),则异常处理返回时,自动切换到Thumb状态。    进入ARM状态:当操作数寄存器的状态位为0时,执行BX指令时可以使微处理器从Thumb状态切换到ARM状态。此外,在处理器进行异常处理时,把PC指针放入异常模式链接寄存器中,并从异常向量地址开始执行程序,也可以使处理器切换到ARM状态。ARM处理器模式    ARM微处理器支持7种运行模式,分别为:用户模式(usr):ARM处理器正常的程序执行状态。快速中断模式(fiq):用于高速数据传输或通道处理。外部中断模式(irq):用于通用的中断处理。管理模式(svc):操作系统使用的保护模式。数据访问终止模式(abt):当数据或指令预取终止时进入该模式,可用于虚拟存储及存储保护。系统模式(sys):运行具有特权的操作系统任务。定义指令中止模式(und):当未定义的指令执行时进入该模式,可用于支持硬件协处理器的软件仿真。ARM处理器模式    ARM微处理器的运行模式可以通过软件改变,也可以通过外部中断或异常处理改变。大多数的应用程序运行在用户模式下,当处理器运行在用户模式下时,某些被保护的系统资源是不能被访问的。    除用户模式以外,其余的所有6种模式称之为非用户模式,或特权模式;其中除去用户模式和系统模式以外的5种又称为异常模式,常用于处理中断或异常,以及需要访问受保护的系统资源等情况。ARM寄存器    ARM处理器共有37个寄存器。其中包括:31个通用寄存器,包括程序计数器(PC)在内。这些寄存器都是32位寄存器。以及6个32位状态寄存器。 关于寄存器这里就不详细介绍了,有兴趣的人可以上网找找,很多这方面的资料。异常处理    当正常的程序执行流程发生暂时的停止时,称之为异常,例如处理一个外部的中断请求。在处理异常之前,当前处理器的状态必须保留,这样当异常处理完成之后,当前程序可以继续执行。处理器允许多个异常同时发生,它们将会按固定的优先级进行处理。当一个异常出现以后,ARM微处理器会执行以下几步操作:进入异常处理的基本步骤:将下一条指令的地址存入相应连接寄存器LR,以便程序在处理异常返回时能从正确的位置重新开始执行。将CPSR复制到相应的SPSR中。根据异常类型,强制设置CPSR的运行模式位。强制PC从相关的异常向量地址取下一条指令执行,从而跳转到相应的异常处理程序处。如果异常发生时,处理器处于Thumb状态,则当异常向量地址加载入PC时,处理器自动切换到ARM状态。 ARM微处理器对异常的响应过程用伪码可以描述为: R14_ = Return LinkSPSR_= CPSRCPSR[4:0] = Exception Mode NumberCPSR[5] = 0 ;当运行于 ARM 工作状态时If == Reset or FIQ then;当响应 FIQ 异常时,禁止新的 FIQ 异常CPSR[6] = 1PSR[7] = 1PC = Exception Vector Address异常处理完毕之后,ARM微处理器会执行以下几步操作从异常返回:将连接寄存器LR的值减去相应的偏移量后送到PC中。将SPSR复制回CPSR中。若在进入异常处理时设置了中断禁止位,要在此清除。

    标签: ARM 处理器 工作模式

    上传时间: 2013-11-15

    上传用户:hanbeidang

  • C语言函数大全(语法着色版)

        C语言函数大全,已包含绝大部分的函数。每个函数包含函数名,功能,用法,举例,内容详尽。希望对大家有所帮助~~   函数名: abort   功 能: 异常终止一个进程   用 法: void abort(void);   程序例:   #include   #include   int main(void)   {   printf("Calling abort()\n");   abort();   return 0; /* This is never reached */   }   函数名: abs   功 能: 求整数的绝对值   用 法: int abs(int i);   程序例:   #include   #include   int main(void)   {   int number = -1234;   printf("number: %d absolute value: %d\n", number, abs(number));   return 0;   }

    标签: C语言 函数

    上传时间: 2013-12-06

    上传用户:feifei0302

  • 此代码可以实现以下功能 使用wordappalication 组件

    此代码可以实现以下功能 使用wordappalication 组件,代码如下 启动Word时用如下代码: begin try Wordapplication.Connect except MessageDlg(’Word may not be installed’, mtError, [mbOk], 0) abort end Wordapplication.Visible := True WordApplication.Caption := ’Delphi automation’ end

    标签: wordappalication 代码

    上传时间: 2014-01-22

    上传用户:Divine

  • 这是sun公司的程序员考试书籍(英文版的pdf) 还有模拟考试安装盘

    这是sun公司的程序员考试书籍(英文版的pdf) 还有模拟考试安装盘,和视频!我将稍后发布! READ THIS AGREEMENT CAREFULLY. IF YOU AGREE TO ALL THE TERMS AND CONDITIONS SET FORTH BELOW AND ARE WILLING TO BE LEGALLY BOUND BY THEM, PRESS THE I AGREE BUTTON TO CONTINUE WITH THE SETUP. IF YOU DO NOT AGREE TO SUCH TERMS AND CONDITIONS, PRESS THE I DON T AGREE BUTTON TO abort THE INSTALLATION.

    标签: sun 程序员 书籍

    上传时间: 2015-05-25

    上传用户:ccclll

  • #include<iostream> using namespace std int main() { unsigned long x,warcraft,war,l

    #include<iostream> using namespace std int main() { unsigned long x,warcraft,war,l cin> x while(x) { unsigned long *p=new unsigned long[x+1] if(p==NULL) { cerr<<"error!"<<endl abort() } for(warcraft=0 warcraft<=x warcraft++) *(p+warcraft)=0 *p=1 for(warcraft=0 warcraft<x warcraft++) { cout<<*p<<" " war=*p for(l=1 x>1 l++) { if(*(p+l)==0) { cout<<endl *(p+l)=1 break } else { cout<<*(p+l)<<" " *(p+l)=war+*(p+l) war=*(p+l)-war } } } cout<<endl delete [] p cin>>x } return 0 }

    标签: namespace iostream unsigned warcraft

    上传时间: 2015-12-11

    上传用户:manlian

  • ARMask.The ARM has six operating modes: • User (unprivileged mode under which most tasks run)

    ARMask.The ARM has six operating modes: • User (unprivileged mode under which most tasks run) • FIQ (entered when a high priority (fast) interrupt is raised) • IRQ (entered when a low priority (normal) interrupt is raised) • Supervisor (entered on reset and when a Software Interrupt instruction is executed) • abort (used to handle memory access violations) • Undef (used to handle undefined instructions) * ARM Architecture Version 4 adds a seventh mode: • System (privileged mode using the same registers as user mode)

    标签: unprivileged operating ARMask modes

    上传时间: 2013-12-24

    上传用户:bcjtao

  • 数据异常处理。The main source file is "dabort.s": with suitable -PreDefines or a corresponding "options-s

    数据异常处理。The main source file is "dabort.s": with suitable -PreDefines or a corresponding "options-setting" file, it assembles to the data abort veneer. This is described in detail in the documentation. The "dabort.h" file contains definitions of some constants used in the data abort veneer s interface to the rest of the system - again, this is described in the documentation. The "option.s" file is an example "options-setting" file.

    标签: corresponding PreDefines options-s suitable

    上传时间: 2013-12-03

    上传用户:星仔

  • The Fat Fs module is a middleware that written in ANSI C. There is no platform dependence, so long a

    The Fat Fs module is a middleware that written in ANSI C. There is no platform dependence, so long as the compiler is in compliance with ANSI C. However it handles the system portable FAT structures. You must take the endian into consideration. It must be changed for your platform first or the compiler will abort with an error.

    标签: C. dependence middleware platform

    上传时间: 2014-01-11

    上传用户:cccole0605